diff --git a/MPI/amrex/build b/MPI/amrex/build new file mode 100755 index 0000000..2f13ce7 --- /dev/null +++ b/MPI/amrex/build @@ -0,0 +1,52 @@ +#!/usr/bin/env modbuild + + +pbuild::set_download_url "https://github.com/AMReX-Codes/$P/archive/${V_PKG}.tar.gz" "amrex-${V_PKG}.tar.gz" +pbuild::add_to_group 'MPI' + +pbuild::install_docfiles 'CHANGES' +pbuild::install_docfiles 'INSTALL' +pbuild::install_docfiles 'license.txt' +pbuild::install_docfiles 'README.txt' + + +pbuild::pre_configure() { + pbuild::use_cmake + OPENMP=0 + pbuild::use_flag "2d" && DIM=2 + pbuild::use_flag "3d" && DIM=3 + + pbuild::add_configure_args "CC=${MPICC}" + pbuild::add_configure_args "CXX=${MPICXX}" + pbuild::add_configure_args "FC=${MPIF90}" + pbuild::add_configure_args "-DENABLE_PARTICLES=1" + pbuild::add_configure_args "-DENABLE_LINEAR_SOLVERS=1" + pbuild::add_configure_args "-DENABLE_LINEAR_SOLVERS_LEGACY=1" + pbuild::add_configure_args "-DDEBUG=OFF" + pbuild::add_configure_args "-DDIM=${DIM}" + pbuild::add_configure_args "-DENABLE_PIC=0" + pbuild::add_configure_args "-DENABLE_MPI=1" + pbuild::add_configure_args "-DENABLE_OMP=${OPENMP}" + pbuild::add_configure_args "-DENABLE_DP=1" + pbuild::add_configure_args "-DENABLE_EB=OFF" + pbuild::add_configure_args "-DENABLE_FORTRAN_INTERFACES=ON" + pbuild::add_configure_args "-DENABLE_FBASELIB=1" + pbuild::add_configure_args "-DENABLE_AMRDATA=OFF" + pbuild::add_configure_args "-DENABLE_DP_PARTICLES=1" + pbuild::add_configure_args "-DENABLE_FPE=0" + pbuild::add_configure_args "-DENABLE_ASSERTION=OFF" + pbuild::add_configure_args "-DENABLE_BASE_PROFILE=OFF" + pbuild::add_configure_args "-DENABLE_TINY_PROFILE=OFF" + pbuild::add_configure_args "-DENABLE_TRACE_PROFILE=OFF" + pbuild::add_configure_args "-DENABLE_MEM_PROFILE=OFF" + pbuild::add_configure_args "-DENABLE_COMM_PROFILE=OFF" + pbuild::add_configure_args "-DENABLE_BACKTRACE=OFF" + pbuild::add_configure_args "-DENABLE_PROFPARSER=OFF" + pbuild::add_configure_args "-DCMAKE_BUILD_TYPE=Release" +} + +# Local Variables: +# mode: sh +# sh-basic-offset: 8 +# tab-width: 8 +# End: diff --git a/MPI/amrex/files/variants b/MPI/amrex/files/variants new file mode 100644 index 0000000..21d67c0 --- /dev/null +++ b/MPI/amrex/files/variants @@ -0,0 +1,27 @@ +amrex/18.07_2d unstable gcc/7.3.0 openmpi/1.10.7 b:cmake/3.9.6 +amrex/18.07_2d unstable gcc/7.3.0 openmpi/2.1.5 b:cmake/3.9.6 +amrex/18.07_2d unstable gcc/7.3.0 openmpi/3.0.0 b:cmake/3.9.6 +amrex/18.07_2d unstable gcc/7.3.0 openmpi/3.1.2 b:cmake/3.9.6 +amrex/18.07_2d unstable gcc/7.3.0 openmpi/3.1.3 b:cmake/3.9.6 + +amrex/18.07_2d unstable gcc/8.2.0 openmpi/1.10.7 b:cmake/3.9.6 +amrex/18.07_2d unstable gcc/8.2.0 openmpi/2.1.5 b:cmake/3.9.6 +amrex/18.07_2d unstable gcc/8.2.0 openmpi/3.1.3 b:cmake/3.9.6 + +amrex/18.07_2d unstable gcc/7.3.0 mpich/3.2.1 b:cmake/3.9.6 +amrex/18.07_2d unstable gcc/8.2.0 mpich/3.2.1 b:cmake/3.9.6 + + +amrex/18.07_3d unstable gcc/7.3.0 openmpi/1.10.7 b:cmake/3.9.6 +amrex/18.07_3d unstable gcc/7.3.0 openmpi/2.1.5 b:cmake/3.9.6 +amrex/18.07_3d unstable gcc/7.3.0 openmpi/3.0.0 b:cmake/3.9.6 +amrex/18.07_3d unstable gcc/7.3.0 openmpi/3.1.2 b:cmake/3.9.6 +amrex/18.07_3d unstable gcc/7.3.0 openmpi/3.1.3 b:cmake/3.9.6 + +amrex/18.07_3d unstable gcc/8.2.0 openmpi/1.10.7 b:cmake/3.9.6 +amrex/18.07_3d unstable gcc/8.2.0 openmpi/2.1.5 b:cmake/3.9.6 +amrex/18.07_3d unstable gcc/8.2.0 openmpi/3.1.3 b:cmake/3.9.6 + +amrex/18.07_3d unstable gcc/7.3.0 mpich/3.2.1 b:cmake/3.9.6 +amrex/18.07_3d unstable gcc/8.2.0 mpich/3.2.1 b:cmake/3.9.6 + diff --git a/MPI/amrex/modulefile b/MPI/amrex/modulefile new file mode 100644 index 0000000..c9a02c8 --- /dev/null +++ b/MPI/amrex/modulefile @@ -0,0 +1,10 @@ +#%Module1.0 + +module-whatis "Adaptive Mesh Refinment library for exascale" +module-url "https://amrex-codes.github.io/" +module-license "BSD like, see $PREFIX/share/doc/amrex/license.txt" +module-maintainer "Achim Gsell " +module-help " +A software framework for massively parallel, block-structured adaptive mesh +refinement (AMR) applications. +"