20 lines
566 B
Plaintext
Executable File
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"
|
|
}
|
|
|