summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorjiseung <anna.jiseung@gmail.com>2017-07-19 17:04:53 -0500
committerAdam J. Stewart <ajstewart426@gmail.com>2017-07-19 17:04:53 -0500
commit301b457de339b1e795d95a6d328d373568462569 (patch)
tree71f170d3de079aa0a9f76457f7d690e1c21331ce /var
parent1b0d2888bbfffefcda7eb1ffa6e46af9bd652858 (diff)
downloadspack-301b457de339b1e795d95a6d328d373568462569.tar.gz
spack-301b457de339b1e795d95a6d328d373568462569.tar.bz2
spack-301b457de339b1e795d95a6d328d373568462569.tar.xz
spack-301b457de339b1e795d95a6d328d373568462569.zip
new package: amr-exp-parabolic (#4821)
* new package: amr-exp-parabolic * removed boilerplate and added tag
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/amr-exp-parabolic/package.py78
1 files changed, 78 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/amr-exp-parabolic/package.py b/var/spack/repos/builtin/packages/amr-exp-parabolic/package.py
new file mode 100644
index 0000000000..dcb85a5590
--- /dev/null
+++ b/var/spack/repos/builtin/packages/amr-exp-parabolic/package.py
@@ -0,0 +1,78 @@
+##############################################################################
+# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC.
+# Produced at the Lawrence Livermore National Laboratory.
+#
+# This file is part of Spack.
+# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
+# LLNL-CODE-647188
+#
+# For details, see https://github.com/llnl/spack
+# Please also see the LICENSE file for our notice and the LGPL.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License (as
+# published by the Free Software Foundation) version 2.1, February 1999.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and
+# conditions of the GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+##############################################################################
+from spack import *
+import glob
+
+
+class AmrExpParabolic(MakefilePackage):
+ """Simplified block-structured adaptive mesh refinement algorithm
+ in two and three dimensions with subcycling in time.
+ The algorithm solves a linear advection diffusion equation
+ with a simple numerical method. This proxy app is intended to
+ capture the communication pattern of an explicit AMR algorithm
+ but does not represent an accurate characterization of
+ floating point effort or
+ relative costs of communication to computation."""
+
+ homepage = "https://ccse.lbl.gov/ExaCT/index.html"
+ url = "https://ccse.lbl.gov/ExaCT/AMR_Exp_Parabolic.tgz"
+ tags = ['proxy-app']
+
+ version(
+ 'release', '330604d9cc755dad8a2cdfaa7ff8f6a4',
+ url='https://ccse.lbl.gov/ExaCT/AMR_Exp_Parabolic.tgz')
+
+ variant(
+ 'debug', default=False, description='Turn on debugging')
+ variant(
+ 'mpi', default=True, description='Build with MPI support')
+ variant(
+ 'openmp', default=False,
+ description='Build with OpenMP support')
+ variant(
+ 'prof', default=False, description='Use profiler')
+
+ depends_on('mpi', when='+mpi')
+ depends_on('gmake', type='build')
+
+ build_directory = 'MiniApps/AMR_Adv_Diff_F90'
+
+ def edit(self, spec, prefix):
+ with working_dir(self.build_directory):
+ makefile = FileFilter('GNUmakefile')
+ if '+debug' in spec:
+ makefile.filter('NDEBUG.*:= t', '#')
+ if '~mpi' in spec:
+ makefile.filter('MPI.*:= t', '#')
+ if '+openmp' in spec:
+ makefile.filter('OMP.*:=', 'OMP := t')
+ if '+prof' in spec:
+ makefile.filter('PROF.*:=', 'PROF := t')
+
+ def install(self, spec, prefix):
+ mkdirp(prefix.bin)
+ files = glob.glob(join_path(self.build_directory, '*.exe'))
+ for f in files:
+ install(f, prefix.bin)