的个人主页 http://faculty.ustc.edu.cn/gaoankang/zh_CN/index.htm
Clone the code as before. Put gsmpi, scotch,tinyxml libs to ThirdParty directory (If network is available, these libs can be downloaded automatically)
module purge module load compiler/devtoolset/7.3.1 module load compiler/intel/2017.5.239 mpi/intelmpi/mpi/2017.4.239 module load mathlib/boost/1.66.0-impi-2017 mathlib/zlib/1.2.11/intel mathlib/lapack/intel/3.10.0 mathlib/fftw/intelmpi/3.3.7_double module load compiler/cmake/3.23.3
Clone code
git clone https://gitlab.nektar.info/gaoak/nektar.git nektar2++ cd nektar++ git checkout feature/MRF_boundarycondition mkdir build cd build
Run cmake
cmake .. -DCMAKE_INSTALL_PREFIX=/public/home/gbzhang/nektar2++/install \ -DNEKTAR_USE_FFTW=ON -DNEKTAR_USE_MKL=ON -DNEKTAR_USE_MPI=ON -DNEKTAR_USE_HDF5=ON \ -DNEKTAR_USE_SYSTEM_BLAS_LAPACK=OFF -DTHIRDPARTY_BUILD_FFTW=OFF \ -DTHIRDPARTY_BUILD_BOOST=OFF -DTHIRDPARTY_BUILD_HDF5=ON \ -DTHIRDPARTY_BUILD_SCOTCH=ON -DCMAKE_CXX_FLAGS="-O3 " \ -DCMAKE_C_FLAGS="-O3 " -DCMAKE_Fortran_FLAGS="-O3 " \ -DCMAKE_CXX_COMPILER=mpicxx -DCMAKE_C_COMPILER=mpicc \ -DCMAKE_Fortran_COMPILER=mpif90 \ -DFFTW_LIBRARY=/public/software/mathlib/fftw/intelmpi/3.3.7_double/lib/libfftw3.so.3
Install
make -j4 make install
To submit job, use the following script
#!/bin/bash #SBATCH -J nektar-intel2021 ##SBATCH --time=0:20:0 #SBATCH -N 1 #SBATCH --ntasks-per-node=128 #SBATCH -p hfacnormal01 module purge module load compiler/intel/2017.5.239 module load mpi/intelmpi/mpi/2017.4.239 module load mathlib/fftw/intelmpi/3.3.7_double module load mathlib/boost/1.66.0-impi-2017 module load compiler/devtoolset/7.3.1 module list #export PATH=/public/home/gbzhang/nektar2++/install/bin:$PATH export PATH=/public/home/gbzhang/nektar2++/install/bin:$PATH export LD_LIBRARY_PATH=/public/home/gbzhang/nektar2++/install/lib64:$LD_LIBRARY_PATH srun --mpi=pmi2 IncNavierStokesSolver airfoil.xml airfoilc.xml -i Hdf5 -v > runlog 2>&1