Compilation and Installation
Procedure
- Use PuTTY to log in to the server as the root user.
- Go to the LAMMPS installation package directory.
cd /path/to/LAMMPS
- Decompress the LAMMPS installation package.
tar -xvf lammps-5Jun2019.tar.gz
- Go to the src directory.
cd lammps-5Jun19/src
- Modify the MAKE/Makefile.mpi file.
- Open the MAKE/Makefile.mpi file.
vi MAKE/Makefile.mpi
- Press i to enter the edit mode and modify the CCFLAGS, LINKFLAGS, FFT_INC, FFT_PATH, and FFT_LIB lines in the MAKE/Makefile.mpi file.
CC = mpicxx CCFLAGS = -g -O3 -I/path/to/BISHENG/include/c++/v1 -L/path/to/BISHENG/lib -std=c++11 -stdlib=libc++ -lc++ -lc++abi SHFLAGS = -fPIC DEPFLAGS = -M LINK = mpicxx LINKFLAGS = -g -O -L/path/to/BISHENG/lib -std=c++11 -stdlib=libc++ -lc++ -lc++abi LIB = SIZE = size ...... ARCHIVE = ar ARFLAGS = -rc SHLIBFLAGS = -shared FFT_INC = -DFFT_FFTW -I/path/to/FFTW/include FFT_PATH = -L/path/to/FFTW/lib FFT_LIB = -lfftw3
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the MAKE/Makefile.mpi file.
- Perform the compilation.
make yes-KSPACE make yes-MPIIO make yes-MOLECULE make yes-MANYBODY make yes-USER-REAXC make mpi -j
Parent topic: LAMMPS 5 Jun 2019 Porting Guide (openEuler 21.03)