Problems compiling cfdem under CentOS 6.2/Rocks.

Submitted by ekran on Thu, 04/09/2015 - 09:41

I've compiled OpenFOAM-2.3.1 and LIGGGHTS without much problem, well, LIGGGHTS gives this output at the end which I don't understand:

Please provide the libraries to be compiled in the //home/alpha/CFDEM/CFDEMcoupling-PUBLIC-2.3.1/src/lagrangian/cfdemParticle/etc/library-list.txt file.
will change path...
rm: cannot remove `/home/alpha/CFDEM/CFDEMcoupling-PUBLIC-2.3.1/src/lagrangian/cfdemParticle/etc/log/log_compileCFDEMcoupling_cfdemParticle': No such file or directory

But all in all it seems to work. The problem starts with CFDEM. When I start compiling I notice that the compiler has trouble finding the openmpi header files, and I get a lot of errors that looks like these:

could not open file ompi/mpi/cxx/status_inln.h for source file derived/cfdemCloudIB/cfdemCloudIB.C due to No such file or directory
could not open file ompi/mpi/cxx/info_inln.h for source file derived/cfdemCloudIB/cfdemCloudIB.C due to No such file or directory
could not open file ompi/mpi/cxx/win_inln.h for source file derived/cfdemCloudIB/cfdemCloudIB.C due to No such file or directory
could not open file ompi/mpi/cxx/file_inln.h for source file derived/cfdemCloudIB/cfdemCloudIB.C due to No such file or directory

It's a rather long list. I as wondering if there is any environment variable or something I can use to specify where CFDEM should look to find the header files?