1.安装fftw

1.安装fftw

tar zxvf ffw
./configure --prefix()
make
make install

2.安装mpich2

tar zxvf mpich
./configure --prefix()
make 
make install

设置环境变量:

bashrc 通常隐藏需要 ls -al 才显示

export PATH=/home/export/parastor/users/libing/ReSet/setmpich2/bin:$PATH

export LD_LIBRARY_PATH=/home/export/parastor/users/libing/ReSet/setmpich2/lib:$LD_LIBRARY_PATH

3.安装lammps:

tar zxvf lammps
cd lammps/src
make package-status
make yes-all
make no-gpu
make no-kim
make no-user-atc

​ 安装mean

make -f Makefile.gfortran

make -f Makefile.g++

make -f Makefile.gfortran

配置形成可执行文件:

CC =            mpic++
CCFLAGS =       -O
SHFLAGS =       -fPIC
DEPFLAGS =      -M

LINK =          mpic++
LINKFLAGS =     -O
LIB =
SIZE =          size

ARCHIVE =       ar
ARFLAGS =       -rc
SHLIBFLAGS =    -shared


LMP_INC =       -DLAMMPS_GZIP

# MPI library, REQUIRED
# see discussion in doc/Section_start.html#2_2 (step 5)
# can point to dummy MPI library in src/STUBS as in Makefile.serial
# INC = path for mpi.h, MPI compiler settings
# PATH = path for MPI library
# LIB = name of MPI library

MPI_INC =       -I/home/export/parastor/users/libing/ReSet/setmpich2/include -DMPICH_SKIP_MPICXX
MPI_PATH =      -L/home/export/parastor/users/libing/ReSet/setmpich2/lib
MPI_LIB =       -L//home/export/parastor/users/libing/ReSet/setmpich2/lib/libmpi.a



FFT_INC =      -I /home/export/parastor/users/libing/Lammps/fftwsetup/include-DFFT_FFTW
FFT_PATH =      -L /home/export/parastor/users/libing/Lammps/fftwsetup/lib
FFT_LIB =       -L /home/export/parastor/users/libing/Lammps/fftwsetup/lib-lfftw

# JPEG library, OPTIONAL
# see discussion in doc/Section_start.html#2_2 (step 7)
# only needed if -DLAMMPS_JPEG listed with LMP_INC
# INC = path for jpeglib.h
# PATH = path for JPEG library
# LIB = name of JPEG library

JPG_INC =
JPG_PATH =
JPG_LIB =

# ---------------------------------------------------------------------
# build rules and dependencies
# no need to edit this section

include Makefile.package.settings
include Makefile.package


开始安装:

make clearn-all
make serical
MV lmp_serial imp
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值