Some compilation issues

Submitted by AliBlues on Wed, 02/15/2017 - 09:45

Hi,
1) when trying to compile the cfdem coupling, I had to comment out:
include $(CFDEM_ADD_LIBS_DIR)/additionalLibs_vtk
in etc/addLibs_universal/additionalLibs_3.0.x, otherwise I was getting complains concerning path to vtk of the machine. It is mentioned that this is an optional setting, but what would I be able to do with this option activated.

2) Also, I always notice a series of "could not open file" messages when compiling CFDEM. below I've included the ones I get for the cfdemSolverPiso, though it's the same for the other solvers and libraries. I don't get any errors at the end of compilation, but would like to know if this is an issue which needs to be resolved?
Thanks,
Ali

//**********************************************************//
compiling cfdemSolverPiso

// log_compileCFDEMcoupling_cfdemSolverPiso_cfdemSolverPiso-2017-02-15-08:50 //

/home/Ali/CFDEM/CFDEMcoupling-PUBLIC-3.0.x/applications/solvers/cfdemSolverPiso

removing all .dep files ...
Making dependency list for source file cfdemSolverPiso.C
could not open file fvOptions.H for source file cfdemSolverPiso.C due to No such file or directory
could not open file omp.h for source file cfdemSolverPiso.C due to No such file or directory
could not open file ompi/mpi/cxx/pmpicxx.h for source file cfdemSolverPiso.C due to No such file or directory
could not open file ompi/mpi/cxx/pop_inln.h for source file cfdemSolverPiso.C due to No such file or directory
could not open file ompi/mpi/cxx/pgroup_inln.h for source file cfdemSolverPiso.C due to No such file or directory
could not open file ompi/mpi/cxx/pstatus_inln.h for source file cfdemSolverPiso.C due to No such file or directory
could not open file ompi/mpi/cxx/prequest_inln.h for source file cfdemSolverPiso.C due to No such file or directory
could not open file cfdemCloudRotation.H for source file cfdemSolverPiso.C due to No such file or directory
could not open file cfdemCloudRotationSuperquadric.H for source file cfdemSolverPiso.C due to No such file or directory
could not open file readPISOControls.H for source file cfdemSolverPiso.C due to No such file or directory
g++ -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3 -DNoRepository -ftemplate-depth-100 -DOMPI_SKIP_MPICXX -DCFDEMWMPROJECTVERSION="30" -I/usr/lib/openmpi/include -I/usr/lib/openmpi/include/openmpi -pthread -I/opt/OpenFOAM/OpenFOAM-3.0.x/src/TurbulenceModels/turbulenceModels/lnInclude -I/opt/OpenFOAM/OpenFOAM-3.0.x/src/TurbulenceModels/incompressible/lnInclude -I/opt/OpenFOAM/OpenFOAM-3.0.x/src/fvOptions/lnInclude -I/opt/OpenFOAM/OpenFOAM-3.0.x/src/transportModels -I/opt/OpenFOAM/OpenFOAM-3.0.x/src/transportModels/incompressible/singlePhaseTransportModel -I/opt/OpenFOAM/OpenFOAM-3.0.x/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-3.0.x/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-3.0.x/src/fvOptions/lnInclude -I/home/Ali/CFDEM/CFDEMcoupling-PUBLIC-3.0.x/src/lagrangian/cfdemParticle/lnInclude -I/home/Ali/CFDEM/CFDEMcoupling-PUBLIC-3.0.x/src/lagrangian/cfdemParticle/cfdTools -I/home/Ali/LIGGGHTS/LIGGGHTS-PUBLIC/src -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-3.0.x/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-3.0.x/src/OSspecific/POSIX/lnInclude -fPIC -c cfdemSolverPiso.C -o Make/linux64GccDPInt32Opt/cfdemSolverPiso.o
g++ -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3 -DNoRepository -ftemplate-depth-100 -DOMPI_SKIP_MPICXX -DCFDEMWMPROJECTVERSION="30" -I/usr/lib/openmpi/include -I/usr/lib/openmpi/include/openmpi -pthread -I/opt/OpenFOAM/OpenFOAM-3.0.x/src/TurbulenceModels/turbulenceModels/lnInclude -I/opt/OpenFOAM/OpenFOAM-3.0.x/src/TurbulenceModels/incompressible/lnInclude -I/opt/OpenFOAM/OpenFOAM-3.0.x/src/fvOptions/lnInclude -I/opt/OpenFOAM/OpenFOAM-3.0.x/src/transportModels -I/opt/OpenFOAM/OpenFOAM-3.0.x/src/transportModels/incompressible/singlePhaseTransportModel -I/opt/OpenFOAM/OpenFOAM-3.0.x/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-3.0.x/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-3.0.x/src/fvOptions/lnInclude -I/home/Ali/CFDEM/CFDEMcoupling-PUBLIC-3.0.x/src/lagrangian/cfdemParticle/lnInclude -I/home/Ali/CFDEM/CFDEMcoupling-PUBLIC-3.0.x/src/lagrangian/cfdemParticle/cfdTools -I/home/Ali/LIGGGHTS/LIGGGHTS-PUBLIC/src -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-3.0.x/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-3.0.x/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPInt32Opt/cfdemSolverPiso.o -L/opt/OpenFOAM/OpenFOAM-3.0.x/platforms/linux64GccDPInt32Opt/lib \
-L/home/Ali/OpenFOAM/Ali-3.0.x/platforms/linux64GccDPInt32Opt/lib -lturbulenceModels -lincompressibleTurbulenceModels -lfvOptions -lincompressibleTransportModels -lfiniteVolume -lmeshTools -lfvOptions -llagrangianCFDEM-PUBLIC-3.0.x -lOpenFOAM -ldl \
-lm -o /home/Ali/OpenFOAM/Ali-3.0.x/platforms/linux64GccDPInt32Opt/bin/cfdemSolverPiso
waiting...

//*************************************************//

j-kerbl's picture

j-kerbl | Mon, 02/20/2017 - 15:52

Hi Ali,

1) you're right, it makes sense to leave it to the most simplistic version, however having VTK support greatly improves usability, since you don't need lpp anymore.

2) These warnings are a tiresome issue, but against the most of them we can't really do anything, since they originate from the OpenMPI library. Have a look at e.g. this https://www.cfd-online.com/Forums/openfoam-installation/123741-error-linking-header-files.html

Cheers,
Josef