problem in installing CFDEM

Submitted by cgoniva on
cgoniva

Hi!

Reading this error message from begin to end you find the first error:
/twoWayMPI.H:47:62: error: lammps.h: No such file or directory subModels/dataExchangeModel/twoWayMPI

so CFDEM cannot find the liggghts file lammps.h which most probably means that the liggghts path in cfdemParticle/etc/bashrc is not set correctly.

Cheers,
Chris

Tue, 3 Jan 2012 - 08:16 Permalink
e.derakhshani

In reply to by anonymous_stub (not verified)

Dear Chris,
I checked liggghts path in cfdemParticle/etc/bashrc and I think is correct.
For further information , I have put my bashrc file below.

#----------------------------------*-sh-*--------------------------------------
# CFDEM
# Christoph Goniva
# April 2011
#------------------------------------------------------------------------------
# Script
# etc/bashrc
# Description
# Startup file for cfdem exporting environment variables
# Sourced ~/.bashrc
#------------------------------------------------------------------------------
#- LIGGGHTS source directory src
#export CFDEM_LIGGGHTS_SRC_DIR=$HOME/LIGGGHTS/liggghts_1p0p3/src
export CFDEM_LIGGGHTS_SRC_DIR=$HOME/sderakhshani/LIGGGHTS/liggghts_GIT/src
#- LIGGGHTS lib name
export CFDEM_LIGGGHTS_LIB_NAME=lmp_fedora_fpic
#- CFDEM coupling source directory src
export CFDEM_SRC_DIR=$FOAM_RUN/../src/lagrangian/cfdemParticle/
#- CFDEM lib name
export CFDEM_LIB_NAME=lagrangianCFDEM_shared
#- shortcut to src path
alias cfdem='cd $CFDEM_SRC_DIR'
#- PIZZA src directory
export CFDEM_PIZZA_DIR=$HOME/LAMMPS/pizza-16Mar09/src/
#- path to test harness
export CFDEM_TEST_HARNESS_PATH=$HOME/scripts/testCFDEM/logFiles

In addition , After activating new env vars with this command : . ~/.bashrc , I found that another bashrc file is on the following address: home/sderakhshani/CFDEM/cfdem_GIT/cfdemParticle/etc
But the addresses on this file had not edited !!!

First question: Should the content of this file change after using ". ~/.bashrc" or not ?
Second question: If yes , why has not changed this file ?

After producing this error I replaced the content of bashrc file (home/sderakhshani/CFDEM/cfdem_GIT/cfdemParticle/etc) with bashrc file (home/sderakhshani/OpenFOAM/sderakhshani-1.7.x/src/lagrangian/cfdemParticle/etc) and then saved it.
Then try again , the same error was produced again?

Third question: why is your suggestion ?

Thanks in advanse,
Best regards,
Ebrahim

#----------------------------------*-sh-*--------------------------------------
# CFDEM
# Christoph Goniva
# April 2011
#------------------------------------------------------------------------------
#
# Script
# etc/bashrc
#
# Description
# Startup file for cfdem exporting environment variables
# Sourced ~/.bashrc
#
#------------------------------------------------------------------------------

#- LIGGGHTS source directory src
#export CFDEM_LIGGGHTS_SRC_DIR=$HOME/LIGGGHTS/liggghts_1p0p3/src
export CFDEM_LIGGGHTS_SRC_DIR=$HOME/sderakhshani/LIGGGHTS/liggghts_GIT/src

#- LIGGGHTS lib name
export CFDEM_LIGGGHTS_LIB_NAME=lmp_fedora_fpic

#- CFDEM coupling source directory src
export CFDEM_SRC_DIR=$FOAM_RUN/../src/lagrangian/cfdemParticle/

#- CFDEM lib name
export CFDEM_LIB_NAME=lagrangianCFDEM_shared

#- shortcut to src path
alias cfdem='cd $CFDEM_SRC_DIR'

#- PIZZA src directory
export CFDEM_PIZZA_DIR=$HOME/LAMMPS/pizza-16Mar09/src/

#- path to test harness
export CFDEM_TEST_HARNESS_PATH=$HOME/scripts/testCFDEM/logFiles

Tue, 3 Jan 2012 - 19:02 Permalink
alice

In reply to by anonymous_stub (not verified)

Hi Ebrahim,
the .bashrc file contains information about environment variables and pathes, the one in the etc-folder is included by one line in the .bashrc-file. As soon as you open a new terminal, the variables set there should be valid. (Check it out by e.g. typing "echo $CFDEM_SRC_DIR" to a terminal. If this yields the path defined in the /etc/bashrc, then you're good).
Cheers,
Alice

Wed, 4 Jan 2012 - 08:14 Permalink
e.derakhshani

In reply to by anonymous_stub (not verified)

Hi
Thank you Alice.

I checked all paths by echo command. All of them were correct and were like /etc/bashrc. But error still remains !!!

Do you have any new idea ?

With very best regards,
Ebrahim

Wed, 4 Jan 2012 - 16:54 Permalink
cgoniva

In reply to by anonymous_stub (not verified)

Hi!

Please check what
locate lammps.h
gives.

When executing wmake libso this path should be among those paths the compiler is looking for *.h files.

It should be the same path as echo $CFDEM_LIGGGHTS_SRC_DIR .

Cheers,
Chris

Thu, 5 Jan 2012 - 07:45 Permalink
e.derakhshani

In reply to by anonymous_stub (not verified)

Hello friends,

I want to thanks Alice and Chris for their useful advices.

In the bashrc file I had used the following address:
export CFDEM_LIGGGHTS_SRC_DIR=$HOME/sderakhshani/LIGGGHTS/liggghts_GIT/src

Then I used echo $CFDEM_LIGGGHTS_SRC_DIR and found the following address in the terminal:
/home/sderakhshani/sderakhshani/LIGGGHTS/liggghts_GIT/src

So I edited the address in bashrc file like below (I do not know why I should remove "user" from address):
export CFDEM_LIGGGHTS_SRC_DIR=$HOME/LIGGGHTS/liggghts_GIT/src

And then activate bashrc again and ...

Now by using echo $CFDEM_LIGGGHTS_SRC_DIR, I have :
/home/sderakhshani/LIGGGHTS/liggghts_GIT/src

The Error removed and I finally could run cfdem testcase.

Thank you again from Chris and Alice.

Cheers,
Ebrahim

Thu, 5 Jan 2012 - 10:12 Permalink