Files
MX_Pmodule/MPI/OPAL/build
Achim Gsell 3d841cf76a OPAL/2.4: build with gcc/8.4.0
- AMR and AMR_MG_SOLVER are now enabled
2020-11-16 14:36:24 +01:00

20 lines
566 B
Plaintext
Executable File

#!/usr/bin/env modbuild
pbuild::set_download_url "http://amas.web.psi.ch/Downloads/$P/src/$P-${V_PKG}.tar.xz"
pbuild::add_to_group 'MPI'
pbuild::pre_configure_Linux() {
if (( V_MAJOR < 2)); then
pbuild::add_configure_args '-DENABLE_DKS=ON'
fi
}
# add -fopenmp to CC and CXX, if you want to compile with OpenMP
pbuild::pre_configure() {
pbuild::add_configure_args "-DCMAKE_BUILD_TYPE=Release"
pbuild::add_configure_args "-DENABLE_SAAMG_SOLVER=TRUE"
pbuild::add_configure_args "-DENABLE_AMR=TRUE"
pbuild::add_configure_args "-DENABLE_AMR_MG_SOLVER=TRUE"
}