Error while Compiling CFDEM (2.5.5)

Submitted by Marckmann on Tue, 06/25/2013 - 14:31

Hi,

I have a problem with compiling CFDEM (2.5.5) with OpenFoam 2.1.1. It's all working fine until I do "cfdemCompCFDEM". The resulting errors are (see the attachment for the complete log file):

"Making dependency list for source file subModels/forceModel/DiFeliceDrag/DiFeliceDrag.C
could not open file ompi/mpi/cxx/pmpicxx.h for source file subModels/forceModel/checkCouplingInterval/checkCouplingInterval.C
could not open file ompi/mpi/cxx/pop_inln.h for source file subModels/forceModel/checkCouplingInterval/checkCouplingInterval.C
could not open file ompi/mpi/cxx/pgroup_inln.h for source file subModels/forceModel/checkCouplingInterval/checkCouplingInterval.C
could not open file ompi/mpi/cxx/pstatus_inln.h for source file subModels/forceModel/checkCouplingInterval/checkCouplingInterval.C
could not open file ompi/mpi/cxx/prequest_inln.h for source file subModels/forceModel/checkCouplingInterval/checkCouplingInterval.C"

I'm using OpenMPI 1.4.5 and there are no such h-files.
The h-files are missing in following source files: checkCouplingInterval.C, particleCellVolume.C, newDataExchangeModel.C, twoWayFiles.C, twoWayMPI.C, clockModel.C.

I've tried to find out where these h-files are mentioned but they are commented out everywhere. So I don't know why they are needed and in which files they are opened.

---------------------------
Another occuring error is

"subModels/dataExchangeModel/twoWayMPI/twoWayMPI.H: In member function ‘virtual void Foam::twoWayMPI::setCG() const’:
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.H:170:73: error: ‘class LAMMPS_NS::Force’ has no member named ‘cg’ "
But my guess is that it will resolve itself after fixing the first issue

-----------------------------

Versions:
CFDEMversion="cfdem-2.5.5";
compatibleLIGGGHTSversion="2.3.5";
OFversion="2.1.x";

cfdemSysTest:
*******************
system settings:
*******************
CFDEM_VERSION=PUBLIC
couple to OF_VERSION=2.1.1

check if paths are set correctly
valid:yes critical:yes - $CFDEM_PROJECT_DIR = /home/hm/solver/CFDEMcoupling-PUBLIC-2.1.1
valid:NO critical:no - $CFDEM_PROJECT_USER_DIR = /home/hm/CFDEM/hm-PUBLIC-2.1.1 does not exist
valid:yes critical:yes - $CFDEM_SRC_DIR = /home/hm/solver/CFDEMcoupling-PUBLIC-2.1.1/src/lagrangian/cfdemParticle
valid:yes critical:yes - $CFDEM_SOLVER_DIR = /home/hm/solver/CFDEMcoupling-PUBLIC-2.1.1/applications/solvers
valid:yes critical:yes - $CFDEM_TUT_DIR = /home/hm/solver/CFDEMcoupling-PUBLIC-2.1.1/tutorials
valid:yes critical:yes - $CFDEM_LIGGGHTS_SRC_DIR = /opt/LIGGGHTS/LIGGGHTS-PUBLIC/src
valid:yes critical:yes - $CFDEM_LPP_DIR = /opt/LIGGGHTS/lpp/src
valid:yes critical:no - $CFDEM_PIZZA_DIR = /opt/LIGGGHTS/pizza-5Aug12/src
valid:NO critical:no - $CFDEM_TEST_HARNESS_PATH = /home/hm/CFDEM/hm-PUBLIC-2.1.1/log/logFilesCFDEM-PUBLIC-2.1.1 does not exist

library names
$CFDEM_LIGGGHTS_LIB_NAME = lmp_linux
$CFDEM_LIB_NAME = lagrangianCFDEM-PUBLIC-2.1.1
$LD_LIBRARY_PATH = /opt/intel/composerxe-2011.2.137/compiler/lib/intel64:/opt/intel/composerxe-2011.2.137/mpirt/lib/intel64:/opt/intel/composerxe-2011.2.137/ipp/../compiler/lib/intel64:/opt/intel/composerxe-2011.2.137/ipp/lib/intel64:/opt/intel/composerxe-2011.2.137/compiler/lib/intel64:/opt/intel/composerxe-2011.2.137/mkl/lib/intel64:/opt/intel/composerxe-2011.2.137/tbb/lib/intel64//cc4.1.0_libc2.4_kernel2.6.16.21:/opt/paraviewopenfoam3120/lib/paraview-3.12:/opt/openfoam211/platforms/linux64GccDPOpt/lib/openmpi-system:/opt/ThirdParty-2.1.1/platforms/linux64GccDPOpt/lib/openmpi-system:/usr/lib/openmpi/lib:/home/hm/OpenFOAM/hm-2.1.1/platforms/linux64GccDPOpt/lib:/opt/site/2.1.1/platforms/linux64GccDPOpt/lib:/opt/openfoam211/platforms/linux64GccDPOpt/lib:/opt/ThirdParty-2.1.1/platforms/linux64GccDPOpt/lib:/opt/openfoam211/platforms/linux64GccDPOpt/lib/dummy
*******************
g++:
/usr/bin/g++
g++ (Debian 4.6.3-14) 4.6.3
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

gcc:
/usr/bin/gcc
gcc (Debian 4.6.3-14) 4.6.3
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

mpic++:
/usr/bin/mpic++
g++ (Debian 4.6.3-14) 4.6.3
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

mpirun:
/usr/bin/mpirun
mpirun (Open MPI) 1.4.5

Report bugs to http://www.open-mpi.org/community/help/

--------------------------

Thanks a lot

Hannes

Marckmann | Tue, 06/25/2013 - 15:42

I was able to solve the first part by myself: The "#if 0" part wasn't compiled correctly. So I've just uncommented it and it's working.

However, the second error is still occuring (see the lower part of the first attached file for the detailed log). I'd be really grateful for some help on that.

Hannes

heliana60 | Wed, 09/23/2015 - 09:30

Hi Hannes!

How are you?

I encountered the same problem (1st problem you wrote) about the h-files that cannot be found when I compile cfdemParticle. How did you solve it? I didn't quite get what you meant with the "#if 0" (sorry :( ) can you give me a hint how you solved this? because I don't have those files either.

Anyways the lagrangian library is created but my solvers won't compile either, and I presume it is because of this, the error I get when I compile them is:

/home/heliana/OpenFOAM/heliana-2.3.x/platforms/linux64GccDPOpt/lib/liblagrangianCFDEM-PUBLIC-2.3.x.so: undefined reference to `Foam::UOPstream::writeQuoted(std::__cxx11::basic_string, std::allocator > const&, bool)'

do you happen to have a hint how to solve this?

thanks a lot!

heli