CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Bugs (
-   -   PolyDualMesh crash caused by functions in contralDict (

zeliboba September 26, 2008 05:28

when try to convert mesh with
when try to convert mesh with polyDualMesh it crashed with message:

Attempt to cast type polyMesh to type fvMesh#0 Foam::error::printStack(Foam: in "/home/navier01d/loginov/OpenFOAM/OpenFOAM-1.5/lib/linux64GccDPOpt/libOpenFOAM.s o"
#1 Foam::error::abort() in "/home/navier01d/loginov/OpenFOAM/OpenFOAM-1.5/lib/linux64GccDPOpt/libOpenFOAM.s o"
#2 Foam::sampledSurfaces::sampledSurfaces(Foam::word const&, Foam::objectRegistry const&, Foam::dictionary const&, bool) in "/home/navier01d/loginov/OpenFOAM/OpenFOAM-1.5/lib/linux64GccDPOpt/libsampling.s o"
#3 Foam:<foam::sampledsurfaces>:: start() in "/home/navier01d/loginov/OpenFOAM/OpenFOAM-1.5/lib/linux64GccDPOpt/libsampling.s o"
#4 Foam::functionObjectList::start() in "/home/navier01d/loginov/OpenFOAM/OpenFOAM-1.5/lib/linux64GccDPOpt/libOpenFOAM.s o"
#5 Foam::Time::operator++() in "/home/navier01d/loginov/OpenFOAM/OpenFOAM-1.5/lib/linux64GccDPOpt/libOpenFOAM.s o"
#6 main in "/home/navier01d/loginov/OpenFOAM/OpenFOAM-1.5/applications/bin/linux64GccDPOpt/ polyDualMesh"
#7 __libc_start_main in "/lib64/tls/"
#8 __gxx_personality_v0 in "/home/navier01d/loginov/OpenFOAM/OpenFOAM-1.5/applications/bin/linux64GccDPOpt/ polyDualMesh"

From function refCast<to>(From&)
in file /home/navier01b/kuczaj/OpenFOAM/OpenFOAM-1.5/src/OpenFOAM/lnInclude/typeInfo.H at line 106.

the problem disappeared when I deleted


clause from controlDict (it left from previous simulation)

mattijs September 28, 2008 11:06

Thanks, I'll disable the funct
Thanks, I'll disable the functionObjects in polyDualMesh.

I'll push it to the 1.5.x git or you can just add an


after the

# include "createTime.H"

All times are GMT -4. The time now is 23:27.