现象描述:
在运行Allwmake编译CGAL时编译失败,提示“.fatal error: boost/config/compiler/gcc.hpp: No such file or directory”。
可能原因:
安装过程中因为环境变量或者CMake安装失败导致的CGAL安装失败。如果OpenFOAM某一模块在安装过程中报错,只需单独重复安装出错模块即可。
处理步骤:
rm -rf /path/to/OPENFOAM/OpenFOAM-v1906/platform/arch/boost_1_64_0
cd /path/to/OPENFOAM/Thirdparty-v1906 ./makeCGAL
现象描述:
在运行Allwmake编译SCOTCH时编译失败,提示“*esmump.h* No such file or directory”。
可能原因:
脚本运行中出现错误,导致esmump没有安装成功。
处理步骤:
cd /path/to/OPENFOAM/ThirdParty-v1906/scotch_6.0.6/src make esmumps
foam ./Allwmake -j
现象描述:
在运行Allwmake编译SCOTCH时编译失败,提示:
“cp: cannot stat `../bin/d[agm]*': No such file or directory
make: [install] Error 1 (ignored)”
可能原因:
并非是d[agm]造成的,一般出现在重复运行安装程序时,scotch文件夹没有被清理,可以在scotch源码路径内运行make distclean后再手动安装scotch程序。
处理步骤:
“linuxARM64GccDPInt32”是根据安装环境的架构及使用的编译器进行命名的,需要在具体安装过程中确认路径名称。
rm -rf /path/to/OPENFOAM/ThirdParty-v1906/platforms/linuxARM64GccDPInt32/scotch_6.0.6/
手动安装scotch需要将安装路径设置为对前面删除的安装路径。
make scotch make esmumps make ptscotch make prefix=/path/to/OPENFOAM/ThirdParty-v1906/platforms/linuxARM64GccDPInt32/scotch_6.0.6/ install
foam ./Allwmake -j
现象描述:
算例运行一般需要几分钟,如果在一分钟内结束需要查看日志文件确认计算是否正常运行。如果日志文件中出现错误信息:“mpirun has detected an attempt to run as root.”。
可能原因:
使用root账户运行mpirun需要增加参数。
处理步骤:
vi /path/to/OPENFOAM/OpenFOAM-v1906/bin/tools/RunFunctions
./Allclean ./Allrun