foam-extend-4.1安装出错
-
在ubuntu20.04中按照教程安装时出现以下问题:
SOURCE=db/dictionary/dictionaryEntry/dictionaryEntry.C ; g++-7 -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-200 -DOMPI_SKIP_MPICXX -I/include -I/home/ad/foam/foam-extend-4.1/ThirdParty/zlib-1.2.3 -IlnInclude -I. -I/home/ad/foam/foam-extend-4.1/src/foam/lnInclude -I/home/ad/foam/foam-extend-4.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPInt32Opt/dictionaryEntry.o db/IOstreams/Pstreams/IPread.C:29:10: fatal error: mpi.h: No such file or directory #include "mpi.h" ^~~~~~~ db/IOstreams/Pstreams/OPwrite.C:29:10: fatal error: mpi.h: No such file or directory #include "mpi.h" ^~~~~~~ db/IOstreams/Pstreams/PstreamReduceOps.C:26:10: fatal error: mpi.h: No such file or directory #include "mpi.h" ^~~~~~~ db/IOstreams/Pstreams/Pstream.C:26:10: fatal error: mpi.h: No such file or directory #include "mpi.h" ^~~~~~~ compilation terminated. compilation terminated. compilation terminated. compilation terminated. In file included from db/IOstreams/Pstreams/PstreamGlobals.C:26:0: db/IOstreams/Pstreams/PstreamGlobals.H:39:10: fatal error: mpi.h: No such file or directory #include "mpi.h" ^~~~~~~ compilation terminated. make: *** [db/IOstreams/Pstreams/Pstream.dep:170: Make/linux64GccDPInt32Opt/Pstream.o] Error 1 make: *** Waiting for unfinished jobs.... make: *** [db/IOstreams/Pstreams/PstreamReduceOps.dep:148: Make/linux64GccDPInt32Opt/PstreamReduceOps.o] Error 1 make: *** [db/IOstreams/Pstreams/PstreamGlobals.dep:114: Make/linux64GccDPInt32Opt/PstreamGlobals.o] Error 1 make: *** [db/IOstreams/Pstreams/IPread.dep:136: Make/linux64GccDPInt32Opt/IPread.o] Error 1 make: *** [db/IOstreams/Pstreams/OPwrite.dep:136: Make/linux64GccDPInt32Opt/OPwrite.o] Error 1 + decompositionMethods/AllwmakeLnInclude + wmakeLnInclude decomposeReconstruct + wmakeLnInclude decompositionMethods + wmakeLnInclude metisDecomp + wmakeLnInclude parMetisDecomp + wmakeLnInclude scotchDecomp + decompositionMethods/Allwmake + wmakeLnInclude decompositionMethods + wmake libso decompositionMethods '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libdecompositionMethods.so' is up to date. + wmake libso metisDecomp SOURCE=metisDecomp.C ; g++-7 -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-200 -I -I../decompositionMethods/lnInclude -I../scotchDecomp/lnInclude -IlnInclude -I. -I/home/ad/foam/foam-extend-4.1/src/foam/lnInclude -I/home/ad/foam/foam-extend-4.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPInt32Opt/metisDecomp.o In file included from metisDecomp.C:26:0: metisDecomp.H:38:10: fatal error: decompositionMethod.H: No such file or directory #include "decompositionMethod.H" ^~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. make: *** [metisDecomp.dep:342: Make/linux64GccDPInt32Opt/metisDecomp.o] Error 1 + wmake libso parMetisDecomp SOURCE=parMetisDecomp.C ; g++-7 -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-200 -DOMPI_SKIP_MPICXX -I/include -I -I../decompositionMethods/lnInclude -I../metisDecomp/lnInclude -I../scotchDecomp/lnInclude -IlnInclude -I. -I/home/ad/foam/foam-extend-4.1/src/foam/lnInclude -I/home/ad/foam/foam-extend-4.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPInt32Opt/parMetisDecomp.o In file included from parMetisDecomp.C:26:0: parMetisDecomp.H:37:10: fatal error: decompositionMethod.H: No such file or directory #include "decompositionMethod.H" ^~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. make: *** [parMetisDecomp.dep:362: Make/linux64GccDPInt32Opt/parMetisDecomp.o] Error 1 + wmake libso scotchDecomp SOURCE=scotchDecomp/scotchDecomp.C ; g++-7 -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-200 -I -I../decompositionMethods/lnInclude -IlnInclude -I. -I/home/ad/foam/foam-extend-4.1/src/foam/lnInclude -I/home/ad/foam/foam-extend-4.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPInt32Opt/scotchDecomp.o SOURCE=engineScotchDecomp/engineScotchDecomp.C ; g++-7 -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-200 -I -I../decompositionMethods/lnInclude -IlnInclude -I. -I/home/ad/foam/foam-extend-4.1/src/foam/lnInclude -I/home/ad/foam/foam-extend-4.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPInt32Opt/engineScotchDecomp.o In file included from scotchDecomp/scotchDecomp.C:107:0: scotchDecomp/scotchDecomp.H:38:10: fatal error: decompositionMethod.H: No such file or directory #include "decompositionMethod.H" ^~~~~~~~~~~~~~~~~~~~~~~ In file included from engineScotchDecomp/engineScotchDecomp.H:49:0, from engineScotchDecomp/engineScotchDecomp.C:26: lnInclude/scotchDecomp.H:38:10: fatal error: decompositionMethod.H: No such file or directory #include "decompositionMethod.H" ^~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. compilation terminated. make: *** [engineScotchDecomp/engineScotchDecomp.dep:343: Make/linux64GccDPInt32Opt/engineScotchDecomp.o] Error 1 make: *** Waiting for unfinished jobs.... make: *** [scotchDecomp/scotchDecomp.dep:342: Make/linux64GccDPInt32Opt/scotchDecomp.o] Error 1 + wmake libso lagrangian/basic '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/liblagrangian.so' is up to date. + wmake libso edgeMesh '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libedgeMesh.so' is up to date. + wmake libso surfMesh '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libsurfMesh.so' is up to date. + wmake libso meshTools '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libmeshTools.so' is up to date. + wmake libso finiteVolume '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libfiniteVolume.so' is up to date. + wmake libso finiteArea '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libfiniteArea.so' is up to date. + conversion/Allwmake + wmake libso '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libconversion.so' is up to date. + wmake libso lduSolvers '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/liblduSolvers.so' is up to date. + wmake libso tetFiniteElement '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libtetFiniteElement.so' is up to date. + wmake libso decompositionMethods/decomposeReconstruct '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libdecomposeReconstruct.so' is up to date. + dynamicMesh/AllwmakeLnInclude + wmakeLnInclude dynamicMesh + wmakeLnInclude dynamicFvMesh + wmakeLnInclude topoChangerFvMesh + meshMotion/AllwmakeLnInclude + wmakeLnInclude solidBodyMotion + wmakeLnInclude fvMotionSolver + wmakeLnInclude RBFMotionSolver + wmakeLnInclude mesquiteMotionSolver + dynamicMesh/Allwmake + wmake libso dynamicMesh '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libdynamicMesh.so' is up to date. + meshMotion/Allwmake + wmake libso solidBodyMotion '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libsolidBodyMotion.so' is up to date. + wmake libso fvMotionSolver '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libfvMotionSolver.so' is up to date. + wmake libso RBFMotionSolver '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libRBFMotionSolver.so' is up to date. + wmake libso mesquiteMotionSolver SOURCE=mesquiteMotionSolver.C ; g++-7 -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-200 -I -I/home/ad/foam/foam-extend-4.1/src/meshTools/lnInclude -I/home/ad/foam/foam-extend-4.1/src/dynamicMesh/dynamicMesh/lnInclude -IlnInclude -I. -I/home/ad/foam/foam-extend-4.1/src/foam/lnInclude -I/home/ad/foam/foam-extend-4.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPInt32Opt/mesquiteMotionSolver.o In file included from mesquiteMotionSolver.H:39:0, from mesquiteMotionSolver.C:26: /home/ad/foam/foam-extend-4.1/src/dynamicMesh/dynamicMesh/lnInclude/motionSolver.H:42:10: fatal error: twoDPointCorrector.H: No such file or directory #include "twoDPointCorrector.H" ^~~~~~~~~~~~~~~~~~~~~~ compilation terminated.
貌似是无法找到mpi.h文件、decompositionMethod.H文件以及twoDPointCorrector.H文件,我是应该自己添加这些文件然后重新编译吗?
-
针对mpi.h文件,参考了这个帖子,再开始编译前输入了以下代码:
echo "export WM_THIRD_PARTY_USE_BISON_27=1" > etc/prefs.sh echo "export WM_MPLIB=SYSTEMOPENMPI" >> etc/prefs.sh echo "export OPENMPI_DIR=/usr" >> etc/prefs.sh echo "export OPENMPI_BIN_DIR=\$OPENMPI_DIR/bin" >> etc/prefs.sh
在之后的编译中mpi.h文件的问题不在出现,但decompositionMethod.H文件以及twoDPointCorrector.H文件的问题依然存在
-
仅编译src/decompositionMethods文件夹:
ad@ad:~/foam/foam-extend-4.1/src/decompositionMethods$ ./Allwmake + wmakeLnInclude decompositionMethods + wmake libso decompositionMethods Making dependency list for source file decompositionMethod/decompositionMethod.C Making dependency list for source file manualDecomp/manualDecomp.C Making dependency list for source file geomDecomp/geomDecomp.C Making dependency list for source file patchConstrainedDecomp/patchConstrainedDecomp.C Making dependency list for source file hierarchGeomDecomp/hierarchGeomDecomp.C Making dependency list for source file simpleGeomDecomp/simpleGeomDecomp.C SOURCE=decompositionMethod/decompositionMethod.C ; g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-200 -IlnInclude -I. -I/home/ad/foam/foam-extend-4.1/src/foam/lnInclude -I/home/ad/foam/foam-extend-4.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPInt32Opt/decompositionMethod.o SOURCE=manualDecomp/manualDecomp.C ; g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-200 -IlnInclude -I. -I/home/ad/foam/foam-extend-4.1/src/foam/lnInclude -I/home/ad/foam/foam-extend-4.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPInt32Opt/manualDecomp.o SOURCE=geomDecomp/geomDecomp.C ; g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-200 -IlnInclude -I. -I/home/ad/foam/foam-extend-4.1/src/foam/lnInclude -I/home/ad/foam/foam-extend-4.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPInt32Opt/geomDecomp.o SOURCE=simpleGeomDecomp/simpleGeomDecomp.C ; g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-200 -IlnInclude -I. -I/home/ad/foam/foam-extend-4.1/src/foam/lnInclude -I/home/ad/foam/foam-extend-4.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPInt32Opt/simpleGeomDecomp.o SOURCE=hierarchGeomDecomp/hierarchGeomDecomp.C ; g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-200 -IlnInclude -I. -I/home/ad/foam/foam-extend-4.1/src/foam/lnInclude -I/home/ad/foam/foam-extend-4.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPInt32Opt/hierarchGeomDecomp.o SOURCE=patchConstrainedDecomp/patchConstrainedDecomp.C ; g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-200 -IlnInclude -I. -I/home/ad/foam/foam-extend-4.1/src/foam/lnInclude -I/home/ad/foam/foam-extend-4.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPInt32Opt/patchConstrainedDecomp.o '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libdecompositionMethods.so' is up to date. + wmake libso metisDecomp Making dependency list for source file metisDecomp.C could not open file metis.h for source file metisDecomp.C SOURCE=metisDecomp.C ; g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-200 -I -I../decompositionMethods/lnInclude -I../scotchDecomp/lnInclude -IlnInclude -I. -I/home/ad/foam/foam-extend-4.1/src/foam/lnInclude -I/home/ad/foam/foam-extend-4.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPInt32Opt/metisDecomp.o In file included from metisDecomp.C:26:0: metisDecomp.H:38:10: fatal error: decompositionMethod.H: No such file or directory #include "decompositionMethod.H" ^~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. make: *** [metisDecomp.dep:342: Make/linux64GccDPInt32Opt/metisDecomp.o] Error 1 + wmake libso parMetisDecomp Making dependency list for source file parMetisDecomp.C could not open file parmetis.h for source file parMetisDecomp.C SOURCE=parMetisDecomp.C ; g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-200 -DOMPI_SKIP_MPICXX -I/usr/lib/x86_64-linux-gnu/openmpi/include -I/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi -I -I../decompositionMethods/lnInclude -I../metisDecomp/lnInclude -I../scotchDecomp/lnInclude -IlnInclude -I. -I/home/ad/foam/foam-extend-4.1/src/foam/lnInclude -I/home/ad/foam/foam-extend-4.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPInt32Opt/parMetisDecomp.o In file included from parMetisDecomp.C:26:0: parMetisDecomp.H:37:10: fatal error: decompositionMethod.H: No such file or directory #include "decompositionMethod.H" ^~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. make: *** [parMetisDecomp.dep:362: Make/linux64GccDPInt32Opt/parMetisDecomp.o] Error 1 + wmake libso scotchDecomp Making dependency list for source file scotchDecomp/scotchDecomp.C Making dependency list for source file engineScotchDecomp/engineScotchDecomp.C could not open file scotch.h for source file scotchDecomp/scotchDecomp.C SOURCE=scotchDecomp/scotchDecomp.C ; g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-200 -I -I../decompositionMethods/lnInclude -IlnInclude -I. -I/home/ad/foam/foam-extend-4.1/src/foam/lnInclude -I/home/ad/foam/foam-extend-4.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPInt32Opt/scotchDecomp.o SOURCE=engineScotchDecomp/engineScotchDecomp.C ; g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-200 -I -I../decompositionMethods/lnInclude -IlnInclude -I. -I/home/ad/foam/foam-extend-4.1/src/foam/lnInclude -I/home/ad/foam/foam-extend-4.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPInt32Opt/engineScotchDecomp.o In file included from scotchDecomp/scotchDecomp.C:107:0: scotchDecomp/scotchDecomp.H:38:10: fatal error: decompositionMethod.H: No such file or directory #include "decompositionMethod.H" ^~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. In file included from engineScotchDecomp/engineScotchDecomp.H:49:0, from engineScotchDecomp/engineScotchDecomp.C:26: lnInclude/scotchDecomp.H:38:10: fatal error: decompositionMethod.H: No such file or directory #include "decompositionMethod.H" ^~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. make: *** [scotchDecomp/scotchDecomp.dep:342: Make/linux64GccDPInt32Opt/scotchDecomp.o] Error 1 make: *** Waiting for unfinished jobs.... make: *** [engineScotchDecomp/engineScotchDecomp.dep:343: Make/linux64GccDPInt32Opt/engineScotchDecomp.o] Error 1
-
@李东岳 这里scotchDecomp的编译也会出问题,导致并行运算没法使用scotch,在分块的时候会出现以下问题:
ad@ad:~/foam/ad-4.1/run/damBreak$ decomposePar /*---------------------------------------------------------------------------*\ | ========= | | | \\ / F ield | foam-extend: Open Source CFD | | \\ / O peration | Version: 4.1 | | \\ / A nd | Web: http://www.foam-extend.org | | \\/ M anipulation | For copyright notice see file Copyright | \*---------------------------------------------------------------------------*/ Build : 4.1-0de8e022a122 Exec : decomposePar Date : Dec 30 2024 Time : 13:10:13 Host : "ad" PID : 19289 CtrlDict : "/home/ad/foam/ad-4.1/run/damBreak/system/controlDict" Case : /home/ad/foam/ad-4.1/run/damBreak nProcs : 1 sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE). allowSystemOperations : Disallowing user-supplied system call operations // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time Time = 0 Create mesh for region region0 Calculating distribution of cells --> FOAM Warning : From function void* Foam::dlOpen(const Foam::fileName&, bool) in file POSIX.C at line 1204 dlopen error : libscotchDecomp.so: cannot open shared object file: No such file or directory --> FOAM Warning : From function bool Foam::dlLibraryTable::open(const Foam::fileName&, bool) in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 97 could not load "libscotchDecomp.so" --> FOAM Warning : From function decompositionMethod::loadExternalLibraries() in file decompositionMethod/decompositionMethod.C at line 520 Loading of decomposition library libscotchDecomp.so unsuccesful. Some decomposition methods may not be available --> FOAM Warning : From function void* Foam::dlOpen(const Foam::fileName&, bool) in file POSIX.C at line 1204 dlopen error : libmetisDecomp.so: cannot open shared object file: No such file or directory --> FOAM Warning : From function bool Foam::dlLibraryTable::open(const Foam::fileName&, bool) in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 97 could not load "libmetisDecomp.so" --> FOAM Warning : From function decompositionMethod::loadExternalLibraries() in file decompositionMethod/decompositionMethod.C at line 520 Loading of decomposition library libmetisDecomp.so unsuccesful. Some decomposition methods may not be available --> FOAM Warning : From function void* Foam::dlOpen(const Foam::fileName&, bool) in file POSIX.C at line 1204 dlopen error : libparMetisDecomp.so: cannot open shared object file: No such file or directory --> FOAM Warning : From function bool Foam::dlLibraryTable::open(const Foam::fileName&, bool) in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 97 could not load "libparMetisDecomp.so" --> FOAM Warning : From function decompositionMethod::loadExternalLibraries() in file decompositionMethod/decompositionMethod.C at line 520 Loading of decomposition library libparMetisDecomp.so unsuccesful. Some decomposition methods may not be available Selecting decompositionMethod scotch --> FOAM FATAL ERROR: Unknown decompositionMethod scotch Valid decompositionMethods are : 4 ( hierarchical manual patchConstrained simple ) From function decompositionMethod::New(const dictionary& decompositionDict, const polyMesh& mesh) in file decompositionMethod/decompositionMethod.C at line 496. FOAM exiting
-
@李东岳 我把ThirdParty里需要的包都手动添加在了
foam/foam-extend-4.1/ThirdParty/rpmBuild/SOURCES/
ad@ad:~/foam/foam-extend-4.1/ThirdParty/rpmBuild/SOURCES$ ls bison-2.7.tar.gz openmpi-1.4.1.tar.gz parmetis-4.0.3.tar.gz cmake-3.2.2.tar.gz openmpi-1.4.3.tar.gz ParMGridGen-1.0.tar.gz hwloc-1.10.1.tar.gz openmpi-1.5.tar.gz PyFoam-0.6.4.tar.gz hwloc-2.0.1.tar.gz openmpi-1.6.5.tar.gz PyFoam-0.6.9.tar.gz libccmio-2.6.1.tar.gz openmpi-1.8.4.tar.gz scotch-6.0.0.tar.gz mesquite-2.1.2.tar.gz openmpi-1.8.8.tar.gz scotch_6.0.4.tar.gz mesquite-2.3.0.tar.gz openmpi-3.1.1.tar.gz metis-5.1.0.tar.gz openmpi-4.0.0.tar.gz
也编译了scotch6.0.4,但还是会出现找不到decompositionMethod.H文件以及twoDPointCorrector.H文件的问题,还多了一个mgridgen.h文件的问题:
ad@ad:~/foam/foam-extend-4.1$ fe41 ad@ad:~/foam/foam-extend-4.1$ echo $WM_THIRD_PARTY_USE_SCOTCH_604 1 ad@ad:~/foam/foam-extend-4.1$ ./Allwmake make: Nothing to be done for 'all'. + wmakePrintBuild -check no git description found + /bin/rm -f foam/Make/linux64GccDPInt32Opt/global.C foam/Make/linux64GccDPInt32Opt/global.o + wmakeLnInclude foam + wmakeLnInclude meshTools + wmakeLnInclude OSspecific/POSIX + wmake libo OSspecific/POSIX '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libOSspecific.o' is up to date. + set +x Note: ignore spurious warnings about missing mpicxx.h headers + wmake libso foam SOURCE=global/global.Cver ; sed -e 's/VERSION_STRING/4.1/' -e 's/BUILD_STRING/4.1/' $SOURCE > Make/linux64GccDPInt32Opt/global.C; g++-7 -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-200 -DOMPI_SKIP_MPICXX -I/home/ad/foam/foam-extend-4.1/ThirdParty/packages/openmpi-1.8.8/platforms/linux64GccDPInt32Opt/include -I/home/ad/foam/foam-extend-4.1/ThirdParty/zlib-1.2.3 -IlnInclude -I. -I/home/ad/foam/foam-extend-4.1/src/foam/lnInclude -I/home/ad/foam/foam-extend-4.1/src/OSspecific/POSIX/lnInclude -fPIC -c Make/linux64GccDPInt32Opt/global.C -o Make/linux64GccDPInt32Opt/global.o '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libfoam.so' is up to date. + decompositionMethods/AllwmakeLnInclude + wmakeLnInclude decomposeReconstruct + wmakeLnInclude decompositionMethods + wmakeLnInclude metisDecomp + wmakeLnInclude parMetisDecomp + wmakeLnInclude scotchDecomp + decompositionMethods/Allwmake + wmakeLnInclude decompositionMethods + wmake libso decompositionMethods '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libdecompositionMethods.so' is up to date. + wmake libso metisDecomp SOURCE=metisDecomp.C ; g++-7 -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-200 -I -I../decompositionMethods/lnInclude -I../scotchDecomp/lnInclude -IlnInclude -I. -I/home/ad/foam/foam-extend-4.1/src/foam/lnInclude -I/home/ad/foam/foam-extend-4.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPInt32Opt/metisDecomp.o In file included from metisDecomp.C:26:0: metisDecomp.H:38:10: fatal error: decompositionMethod.H: No such file or directory #include "decompositionMethod.H" ^~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. make: *** [metisDecomp.dep:342: Make/linux64GccDPInt32Opt/metisDecomp.o] Error 1 + wmake libso parMetisDecomp SOURCE=parMetisDecomp.C ; g++-7 -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-200 -DOMPI_SKIP_MPICXX -I/home/ad/foam/foam-extend-4.1/ThirdParty/packages/openmpi-1.8.8/platforms/linux64GccDPInt32Opt/include -I -I../decompositionMethods/lnInclude -I../metisDecomp/lnInclude -I../scotchDecomp/lnInclude -IlnInclude -I. -I/home/ad/foam/foam-extend-4.1/src/foam/lnInclude -I/home/ad/foam/foam-extend-4.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPInt32Opt/parMetisDecomp.o In file included from parMetisDecomp.C:26:0: parMetisDecomp.H:37:10: fatal error: decompositionMethod.H: No such file or directory #include "decompositionMethod.H" ^~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. make: *** [parMetisDecomp.dep:362: Make/linux64GccDPInt32Opt/parMetisDecomp.o] Error 1 + wmake libso scotchDecomp SOURCE=scotchDecomp/scotchDecomp.C ; g++-7 -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-200 -I -I../decompositionMethods/lnInclude -IlnInclude -I. -I/home/ad/foam/foam-extend-4.1/src/foam/lnInclude -I/home/ad/foam/foam-extend-4.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPInt32Opt/scotchDecomp.o SOURCE=engineScotchDecomp/engineScotchDecomp.C ; g++-7 -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-200 -I -I../decompositionMethods/lnInclude -IlnInclude -I. -I/home/ad/foam/foam-extend-4.1/src/foam/lnInclude -I/home/ad/foam/foam-extend-4.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPInt32Opt/engineScotchDecomp.o In file included from scotchDecomp/scotchDecomp.C:107:0: scotchDecomp/scotchDecomp.H:38:10: fatal error: decompositionMethod.H: No such file or directory #include "decompositionMethod.H" ^~~~~~~~~~~~~~~~~~~~~~~ In file included from engineScotchDecomp/engineScotchDecomp.H:49:0, from engineScotchDecomp/engineScotchDecomp.C:26: lnInclude/scotchDecomp.H:38:10: fatal error: decompositionMethod.H: No such file or directory #include "decompositionMethod.H" ^~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. compilation terminated. make: *** [scotchDecomp/scotchDecomp.dep:342: Make/linux64GccDPInt32Opt/scotchDecomp.o] Error 1 make: *** Waiting for unfinished jobs.... make: *** [engineScotchDecomp/engineScotchDecomp.dep:343: Make/linux64GccDPInt32Opt/engineScotchDecomp.o] Error 1 + wmake libso lagrangian/basic '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/liblagrangian.so' is up to date. + wmake libso edgeMesh '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libedgeMesh.so' is up to date. + wmake libso surfMesh '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libsurfMesh.so' is up to date. + wmake libso meshTools '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libmeshTools.so' is up to date. + wmake libso finiteVolume '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libfiniteVolume.so' is up to date. + wmake libso finiteArea '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libfiniteArea.so' is up to date. + conversion/Allwmake + wmake libso '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libconversion.so' is up to date. + wmake libso lduSolvers '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/liblduSolvers.so' is up to date. + wmake libso tetFiniteElement '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libtetFiniteElement.so' is up to date. + wmake libso decompositionMethods/decomposeReconstruct '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libdecomposeReconstruct.so' is up to date. + dynamicMesh/AllwmakeLnInclude + wmakeLnInclude dynamicMesh + wmakeLnInclude dynamicFvMesh + wmakeLnInclude topoChangerFvMesh + meshMotion/AllwmakeLnInclude + wmakeLnInclude solidBodyMotion + wmakeLnInclude fvMotionSolver + wmakeLnInclude RBFMotionSolver + wmakeLnInclude mesquiteMotionSolver + dynamicMesh/Allwmake + wmake libso dynamicMesh '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libdynamicMesh.so' is up to date. + meshMotion/Allwmake + wmake libso solidBodyMotion '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libsolidBodyMotion.so' is up to date. + wmake libso fvMotionSolver '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libfvMotionSolver.so' is up to date. + wmake libso RBFMotionSolver '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libRBFMotionSolver.so' is up to date. + wmake libso mesquiteMotionSolver SOURCE=mesquiteMotionSolver.C ; g++-7 -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-200 -I -I/home/ad/foam/foam-extend-4.1/src/meshTools/lnInclude -I/home/ad/foam/foam-extend-4.1/src/dynamicMesh/dynamicMesh/lnInclude -IlnInclude -I. -I/home/ad/foam/foam-extend-4.1/src/foam/lnInclude -I/home/ad/foam/foam-extend-4.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPInt32Opt/mesquiteMotionSolver.o In file included from mesquiteMotionSolver.H:39:0, from mesquiteMotionSolver.C:26: /home/ad/foam/foam-extend-4.1/src/dynamicMesh/dynamicMesh/lnInclude/motionSolver.H:42:10: fatal error: twoDPointCorrector.H: No such file or directory #include "twoDPointCorrector.H" ^~~~~~~~~~~~~~~~~~~~~~ compilation terminated. make: *** [mesquiteMotionSolver.dep:408: Make/linux64GccDPInt32Opt/mesquiteMotionSolver.o] Error 1 + wmake libso tetMotionSolver '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libtetMotionSolver.so' is up to date. + wmake libso dynamicFvMesh '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libdynamicFvMesh.so' is up to date. + wmake libso dynamicTopoFvMesh '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libdynamicTopoFvMesh.so' is up to date. + wmake libso topoChangerFvMesh '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libtopoChangerFvMesh.so' is up to date. + wmake libso loadBalanceFvMesh '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libloadBalanceFvMesh.so' is up to date. + wmake libso coupledMatrix '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libcoupledLduMatrix.so' is up to date. + wmake libso sampling '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libsampling.so' is up to date. + wmake libso ODE '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libODE.so' is up to date. + wmake libso POD '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libPOD.so' is up to date. + wmake libso randomProcesses '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/librandomProcesses.so' is up to date. + mesh/Allwmake + wmake libso autoMesh '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libautoMesh.so' is up to date. + wmake libso blockMesh '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libblockMesh.so' is up to date. + wmake libso extrudeModel '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libextrudeModel.so' is up to date. + wmake libso cfMesh '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libcfMesh.so' is up to date. + thermophysicalModels/Allwmake + wmake libso specie '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libspecie.so' is up to date. + wmake libso thermophysicalFunctions '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libthermophysicalFunctions.so' is up to date. + wmake libso liquids '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libliquids.so' is up to date. + wmake libso liquidMixture '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libliquidMixture.so' is up to date. + wmake libso solids '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libsolids.so' is up to date. + wmake libso solidMixture '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libsolidMixture.so' is up to date. + wmake libso basic '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libbasicThermophysicalModels.so' is up to date. + wmake libso reactionThermo '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libreactionThermophysicalModels.so' is up to date. + wmake libso laminarFlameSpeed '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/liblaminarFlameSpeedModels.so' is up to date. + wmake libso chemistryModel '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libchemistryModel.so' is up to date. + wmake libso pdfs '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libpdf.so' is up to date. + wmake libso radiation '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libradiation.so' is up to date. + wmake libso barotropicCompressibilityModel '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libbarotropicCompressibilityModel.so' is up to date. + transportModels/Allwmake + wmake libso incompressible '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libincompressibleTransportModels.so' is up to date. + wmake libso interfaceProperties '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libinterfaceProperties.so' is up to date. + wmake libso viscoelastic '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libviscoelasticTransportModels.so' is up to date. + turbulenceModels/Allwmake + LES/Allwmake + wmakeLnInclude ../incompressible/LES + wmake libso LESfilters '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libLESfilters.so' is up to date. + wmake libso LESdeltas '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libLESdeltas.so' is up to date. + incompressible/Allwmake + wmake libso turbulenceModel '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libincompressibleTurbulenceModel.so' is up to date. + wmake libso RAS '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libincompressibleRASModels.so' is up to date. + wmake libso LES '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libincompressibleLESModels.so' is up to date. + compressible/Allwmake + wmake libso turbulenceModel '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libcompressibleTurbulenceModel.so' is up to date. + wmake libso RAS '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libcompressibleRASModels.so' is up to date. + wmake libso LES '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libcompressibleLESModels.so' is up to date. + lagrangian/Allwmake + wmake libso basic '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/liblagrangian.so' is up to date. + wmake libso solidParticle '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libsolidParticle.so' is up to date. + wmake libso intermediate '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/liblagrangianIntermediate.so' is up to date. + wmake libso dieselSpray '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libdieselSpray.so' is up to date. + wmake libso dsmc '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libdsmc.so' is up to date. + wmake libso coalCombustion '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libcoalCombustion.so' is up to date. + molecularDynamics/Allwmake + wmake libso potential '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libpotential.so' is up to date. + wmake libso molecularMeasurements '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libmolecularMeasurements.so' is up to date. + wmake libso molecule '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libmolecule.so' is up to date. + wmake libso conjugateHeatTransfer '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libconjugateHeatTransfer.so' is up to date. + postProcessing/Allwmake + wmake libo postCalc '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/postCalc.o' is up to date. + wmake libso foamCalcFunctions '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libfoamCalcFunctions.so' is up to date. + functionObjects/Allwmake + wmake libso check '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libcheckFunctionObjects.so' is up to date. + wmake libso field '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libfieldFunctionObjects.so' is up to date. + wmake libso forces '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libforces.so' is up to date. + wmake libso fvTools '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libFVFunctionObjects.so' is up to date. + wmake libso IO '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libIOFunctionObjects.so' is up to date. + wmake libso jobControl '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libjobControl.so' is up to date. + wmake libso systemCall '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libsystemCall.so' is up to date. + wmake libso utilities '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libutilityFunctionObjects.so' is up to date. + wmake libso errorEstimation '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/liberrorEstimation.so' is up to date. + fvAgglomerationMethods/Allwmake + wmake libso MGridGenGamgAgglomeration SOURCE=MGridGenGAMGAgglomerate.C ; g++-7 -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-200 -I/home/ad/foam/foam-extend-4.1/src/finiteVolume/lnInclude -I/Lib -I/IMlib -IlnInclude -I. -I/home/ad/foam/foam-extend-4.1/src/foam/lnInclude -I/home/ad/foam/foam-extend-4.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPInt32Opt/MGridGenGAMGAgglomerate.o MGridGenGAMGAgglomerate.C:35:13: fatal error: mgridgen.h: No such file or directory # include "mgridgen.h" ^~~~~~~~~~~~ compilation terminated. make: *** [MGridGenGAMGAgglomerate.dep:447: Make/linux64GccDPInt32Opt/MGridGenGAMGAgglomerate.o] Error 1 + wmake libso pairPatchAgglomeration '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libpairPatchAgglomeration.so' is up to date. + wmake libso engine '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libengine.so' is up to date. + wmake libso equationReader '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libequationReader.so' is up to date. + wmake libso multiSolver '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libmultiSolver.so' is up to date. + wmake libso solidModels '/home/ad/foam/foam-extend-4.1/lib/linux64GccDPInt32Opt/libsolidModels.so' is up to date. + wmake libso dbns SOURCE=multigrid/mgMeshLevel/mgMeshLevel.C ; g++-7 -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-200 -I/home/ad/foam/foam-extend-4.1/src/finiteVolume/lnInclude -I/home/ad/foam/foam-extend-4.1/src/meshTools/lnInclude -I/home/ad/foam/foam-extend-4.1/src/thermophysicalModels/basic/lnInclude -I/home/ad/foam/foam-extend-4.1/src/turbulenceModels/compressible/turbulenceModel -I/IMlib -I/Lib -IlnInclude -I. -I/home/ad/foam/foam-extend-4.1/src/foam/lnInclude -I/home/ad/foam/foam-extend-4.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPInt32Opt/mgMeshLevel.o multigrid/mgMeshLevel/mgMeshLevel.C:31:13: fatal error: mgridgen.h: No such file or directory # include "mgridgen.h" ^~~~~~~~~~~~ compilation terminated. make: *** [multigrid/mgMeshLevel/mgMeshLevel.dep:428: Make/linux64GccDPInt32Opt/mgMeshLevel.o] Error 1