CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Bugs (http://www.cfd-online.com/Forums/openfoam-bugs/)
-   -   Incorrect labelList initialization in autoRefineMesh (http://www.cfd-online.com/Forums/openfoam-bugs/62442-incorrect-labellist-initialization-autorefinemesh.html)

7islands August 7, 2008 20:56

Description: I got a crash w
 
Description:
I got a crash with autoRefineMesh:

Size of exposedFaceLabels 84 differs from size of exposedPatchIDs 0#0 Foam::error::printStack(Foam:http://www.cfd-online.com/OpenFOAM_D...part/proud.gifstream&) in "/home/ohshima/OpenFOAM/OpenFOAM-1.5/lib/linux64GccDPOpt/libOpenFOAM.so"
#1 Foam::error::abort() in "/home/ohshima/OpenFOAM/OpenFOAM-1.5/lib/linux64GccDPOpt/libOpenFOAM.so"
#2 Foam::removeCells::setRefinement(Foam::List<int> const&, Foam::List<int> const&, Foam::List<int> const&, Foam::polyTopoChange&) const in "/home/ohshima/OpenFOAM/OpenFOAM-1.5/lib/linux64GccDPOpt/libdynamicMesh.so"
#3 subsetMesh(Foam::polyMesh&, int, int, Foam::HashSet<int,> >const&, Foam::cellSet&, Foam::IOList<int>&) in "/home/ohshima/OpenFOAM/OpenFOAM-1.5/applications/bin/linux64GccDPOpt/autoRefine Mesh"
#4 main in "/home/ohshima/OpenFOAM/OpenFOAM-1.5/applications/bin/linux64GccDPOpt/autoRefine Mesh"
#5 __libc_start_main in "/lib64/libc.so.6"
#6 Foam::regIOobject::readIfModified() in "/home/ohshima/OpenFOAM/OpenFOAM-1.5/applications/bin/linux64GccDPOpt/autoRefine Mesh"

Solver/Application:
autoRefineMesh

Source file:
autoRefineMesh.C

Version:
OpenFOAM 1.5

Notes:
Modifying line 523 of autoRefineMesh.C from
labelList(patchI, exposedFaces.size()),
to
labelList(exposedFaces.size(), patchI),
fixed the crash for my case.

Regards,
Takuya

mattijs August 8, 2008 03:48

Nice bugreport! Thanks.
 
Nice bugreport! Thanks.


All times are GMT -4. The time now is 12:42.