#LAMMPS
mkdir cmake/build; cd cmake/build
cp ../presets/most.cmake ../most.cmake
#disable PYTHON in most.cmake
sed -i '/PYTHON/d' ../most.cmake
configure
cmake3 -C ../most.cmake \
-D CMAKE_CXX_COMPILER=mpiicpc \
-D CMAKE_C_COMPILER=mpiicc \
-D CMAKE_Fortran_COMPILER=mpiifort \
-D CMAKE_INSTALL_PREFIX=/opt/app/lammps/29Sep2021/intel \
-D FFTW3_LIBRARY=/opt/app/fftw/lib/libfftw3.a \
-D FFTW3_INCLUDE_DIR=/opt/app/fftw/include ..
lammps defaults to eigen-3.4.0.tar.gz, won't build with intel compiler 2020
Eigen3_build-prefix/src/Eigen3_build/Eigen/src/Core/MathFunctions.h(326): note: this candidate was rejected because at least one template argument could not be deduced
EIGEN_USING_STD(sqrt);
FIX: use eigen-3.3.9.tar.gz
//MD5 checksum of Eigen3 tarball
EIGEN3_MD5:STRING=609286804b0f79be622ccf7f9ff2b660
//URL for Eigen3 tarball
EIGEN3_URL:STRING=https://gitlab.com/libeigen/eigen/-/archive/3.3.9/eigen-3.3.9.tar.gz