LIGGGHTS stands for LAMMPS improved for general granular and granular heat transfer simulations.
There are similarities compiling LAMMPS and LIGGGHTS since both applications are related. Do take a look at Compiling LAMMPS-7Dec2015 with OpenMPI and GNU
FFTW, OpenMPI and GNU compilation are not covered here.
Step1: Download Download LIGGGHTS®-PUBLIC Using GIT. For more information see http://www.cfdem.com/system/files/githubaccess_public_1.pdf
# git clone https://github.com/CFDEMproject/LIGGGHTS-PUBLIC.git
# git clone https://github.com/CFDEMproject/CFDEMcoupling-PUBLIC.git
to get the latest version, open a terminal,
# git pull
Step 2: Configure and Compile LIGGGHTS
# cd LIGGGHTS-PUBLIC/src/MAKE
# vim Makefile.openmpi
In Line 41,42,43 AND 52,53,54 comments the line or leave it blank
#MPI_INC =
#MPI_PATH =
#MPI_LIB =
#FFT_INC =
#FFT_PATH =
#FFT_LIB =
Step 3: Check and Build Packages
Check and Build Standard Package and exclude packages you will not need.
# make package-status
Installed NO: package COHESIONMODELS
Installed YES: package MOLECULE
Installed YES: package PASCAL
Installed YES: package POEMS
Installed YES: package RIGID
Package.sh: line 7: cd: SURFACEMODELS: No such file or directory
Installed NO: package SURFACEMODELS
Installed YES: package VORONOI
For example, exclude those you do not need.
# make yes-standard
# make no-asphere
# make no-voronoi
# make no-pascal
# make no-poems
Step 4: Compile LIGGGHTS
Check make options. Go to src
# make openmpi
# make lmp_openmpi
Step 5: Create a /usr/local/liggghts-12Jan16 and copy libraries.
# cp -Rv doc /usr/local/liggghts-12Jan16
# cp -Rv examples /usr/local/liggghts-12Jan16
# cp -Rv python /usr/local/liggghts-12Jan16
# cp README /usr/local/liggghts-12Jan16
# cp -Rv lib /usr/local/liggghts-12Jan16
# cp lmp_openmpi /usr/local/liggghts-12Jan16/bin
Create a softlinks
# ln -s lmp_openmpi lggghts
There is no the file Makefile.openmpi
LikeLike