请教一下openfoam中出现这种错误是什么意思?
-
-
用 gdb 调试一下 可能是除以零了
-
Sorry, you have to recompile the code.
Change the OpenFOAM/etc/bashrcthecompilemodetoDebug:export WMCOMPILEOPTION=Debug
source OpenFOAM/etc/bashrc
then recompile it. Finally, you can use gdb paraFoam to the more information about your error.
-
是需要先装一个gdb是吧?
-
@刘雄国 是需要先装一个gdb是吧?
-
Yes, you need to install gdb, gcc and g++. For more information, you can see the website http://www.tfd.chalmers.se/~hani/kurser/OS_CFD_2008/debugging.pdf.
Thanks
-
@刘雄国 gdb应该是用于调试程序的吧,可以用来调试算例吗?
-
@孟豪龙 请问一下,你最后用gdb调试了吗?我最近也遇到程序运行错误,也想用gdb调试一下,如果可以的话能否请教几个问题?非常感谢!
-
@OF初学者周 最后没有用gdb