Error

Submitted by yangdm on Fri, 09/09/2011 - 16:52

Hi, all

I just got an error with the 'fix' when running the LIGGGHTS examples:

fix m1 all property/global youngsModulus peratomtype 5.e6
ERROR: Invalid fix style

It seems the property/global is a LIGGGHTS style for the 'fix'.
The LAMMPS examples were done well, without any error, perhaps the LIGGGHTS was not invoked properly??

Any help is appreciated.

ckloss's picture

ckloss | Fri, 09/09/2011 - 17:39

>>fix m 1 all property/global youngsModulus peratomtype 5.e6

are you sure you are running one of the LIGGGHTS examples as-is? there is a blank between "m" and "1"in the line you posted - blanks separate the arguments so in this case the code is looking for a fix style "all" which does not exist - therefore this cannot work

Christoph

ckloss's picture

ckloss | Fri, 09/09/2011 - 18:03

The testharness ran fine for version 1.4.3 that is online. Also if I manually 'git clone' the latest version and run the conveyor examples, everything is fine. Same for the tarball version...
Can you post the script that you are running and can you verify you are running LIGGGHTS, not LAMMPS? Otherwise, can you post the complete script you are running?

Christoph

ckloss's picture

ckloss | Mon, 09/12/2011 - 10:23

>>Isn't it 'lmp_linux' to run the LIGGGHTS???
It depends on what you compile, not how you call it. lmp_linux could be both.
What pops up if you execute it? it says either "LAMMPS [version]" or "LIGGGHTS [version]"

yangdm | Tue, 09/13/2011 - 13:03

Yes, I downloaded the liggghts_1p4p1 from the link.
I noticed there is only a 'install.sh' file in the GRANULAR folder and its content is empty. Do you mean I need to change something with it and compile the code again? and How? Thanks.

Yansan | Tue, 09/13/2011 - 15:45

I copied this lines from the installation tutorial of the CFD-DEM coupling (node/237). It is for Ubuntu but should give you an idea how to do it.

#- install LIGGGHTS:
cd $HOME
mkdir LIGGGHTS
cd LIGGGHTS
git clone git://cfdem.git.sourceforge.net/gitroot/cfdem/liggghtsdev liggghts_GIT
cd liggghts_GIT/src
make clean-all
make fedora_fpic -j
make makelib
make -f Makefile.lib fedora_fpic
sudo ln -s $HOME/LIGGGHTS/liggghts_GIT/src/lmp_fedora_fpic /usr/bin/liggghts
#make sure that /usr/bin is in the $PATH
#which liggghts (should give /usr/bin/liggghts)

Best regards!

yangdm | Tue, 09/13/2011 - 17:00

Thanks Yansan.

I downloaded the installation liggghts_1p4p3.tar.gz and released it in linux. MPI has also been installed correctly, and then I used 'make linux' to compile the code and generated the 'lmp_linux' executable file. When I tried to use 'lmp_linux < in.conveyor' in the conveyor folder, it still gave me the same error. (:-

In the src folder, typing lmp_linux shows 'LAMMPS (22 Mar 2010)'.

I also tried the git, but it said 'the remote end hung up unexpectedly'.

Yansan | Tue, 09/13/2011 - 17:41

When you are in your conveyor folder (LIGGGHTS/liggghts_GIT/examples/LIGGGHTS/conveyor), try this:
../../../src/lmp_linux -in in.conveyor

yangdm | Tue, 09/13/2011 - 18:16

It still pops up the same error.

I guess the LIGGGHTS was not installed in my linux at all. There are a couple of .cpp and .h files for liggghts in the src folder, but none of them is included in the package folders.

In the makefile, the packages included are:
PACKAGE = asphere class2 colloid dipole dsmc gpu granular \
kspace manybody meam molecule opt peri poems prd reax xtc

Thanks.

ckloss's picture

ckloss | Wed, 09/14/2011 - 16:50

If you download the tarball from this site, do not change anything with the packages and compile it, you have LIGGGHTS.

Christoph