memory leak ? - Ubuntu 12.04 freezes upon executing cfdemCompLIG

Submitted by davidf on Tue, 05/06/2014 - 18:58

Hello

I'm trying to compile CFDEM. The compilation of OpenFoam was sucesscfull, and now I turn to compile LIGGGHTS.
I followed the instructions in githubaccess_public.pdf.

The test was sucessful. Executing cfdemSysTest results in:

*******************
system settings:
*******************
CFDEM_VERSION=PUBLIC
couple to OF_VERSION=2.3.0
compile option=Opt

check if paths are set correctly
valid:yes critical:yes - $CFDEM_PROJECT_DIR = /home/davidf/CFDEM/CFDEMcoupling-PUBLIC-2.3.0
valid:yes critical:no - $CFDEM_PROJECT_USER_DIR = /home/davidf/CFDEM/davidf-PUBLIC-2.3.0
valid:yes critical:yes - $CFDEM_SRC_DIR = /home/davidf/CFDEM/CFDEMcoupling-PUBLIC-2.3.0/src
valid:yes critical:yes - $CFDEM_SOLVER_DIR = /home/davidf/CFDEM/CFDEMcoupling-PUBLIC-2.3.0/applications/solvers
valid:yes critical:yes - $CFDEM_TUT_DIR = /home/davidf/CFDEM/CFDEMcoupling-PUBLIC-2.3.0/tutorials
valid:yes critical:yes - $CFDEM_LIGGGHTS_SRC_DIR = /home/davidf/LIGGGHTS/LIGGGHTS-PUBLIC/src
valid:yes critical:yes - $CFDEM_LPP_DIR = /home/davidf/LPP/src
valid:yes critical:no - $CFDEM_PIZZA_DIR = /home/davidf/Software/pizza-9Feb12/src
valid:yes critical:no - $CFDEM_TEST_HARNESS_PATH = /home/davidf/CFDEM/davidf-PUBLIC-2.3.0/log/logFilesCFDEM-PUBLIC-2.3.0

library names
$CFDEM_LIGGGHTS_LIB_NAME = lmp_fedora_fpic
$CFDEM_LIB_NAME = lagrangianCFDEM-PUBLIC-2.3.0
$LD_LIBRARY_PATH = /home/davidf/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc/gperftools-svn/lib:/home/davidf/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc/ParaView-4.1.0/lib/paraview-4.1:/home/davidf/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/lib/openmpi-1.6.5:/home/davidf/OpenFOAM/ThirdParty-2.3.0/platforms/linux64GccDPOpt/lib/openmpi-1.6.5:/home/davidf/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc/openmpi-1.6.5/lib:/home/davidf/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc/openmpi-1.6.5/lib64:/home/davidf/OpenFOAM/davidf-2.3.0/platforms/linux64GccDPOpt/lib:/home/davidf/OpenFOAM/site/2.3.0/platforms/linux64GccDPOpt/lib:/home/davidf/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/lib:/home/davidf/OpenFOAM/ThirdParty-2.3.0/platforms/linux64GccDPOpt/lib:/home/davidf/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/lib/dummy
*******************
However, when I try to compile LIGGGHTS, the compialtion starts fine and after a minute or so (arriving at the stage of .cpp file compilations) my system freezes.

I have 6GB memory on my Ubuntu 12.04 LTS system.
(actually it's a dual boot Win7 - Ubuntu system)

Can anyone tell what's wrong ?

Daniel Queteschiner | Wed, 05/07/2014 - 11:07

First, you have to use OpenFOAM 2.2.x as specified in the versionInfo.H file (in src/lagrangian/cfdemParticle/cfdTools) of the CFDEMcoupling package, 2.3.0 most probably will not work.
At some point of the LIGGGHTS compilation, a couple of template classes have to be generated, which can take a while. This may give the impression of the process to be frozen, just give it some more time to finish. Please, correct me, if indeed it is your system that freezes.