summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2015-11-23 16:00:39 -0800
committerTodd Gamblin <tgamblin@llnl.gov>2015-11-23 16:00:39 -0800
commit76100a6f084324e298604a42a58b18e0616689e2 (patch)
tree0f85675ca44e499437109fac569c28f6835a722c
parentc13329c25a85fd26986746fc5adf818f9dc4ed01 (diff)
parent38b83362b6caeaab56aa7f9c01889eafb77e6e18 (diff)
downloadspack-76100a6f084324e298604a42a58b18e0616689e2.tar.gz
spack-76100a6f084324e298604a42a58b18e0616689e2.tar.bz2
spack-76100a6f084324e298604a42a58b18e0616689e2.tar.xz
spack-76100a6f084324e298604a42a58b18e0616689e2.zip
Merge pull request #158 from davidbeckingsale/features/cleverleaf
Add CleverLeaf package
-rw-r--r--var/spack/packages/SAMRAI/package.py3
-rw-r--r--var/spack/packages/cleverleaf/package.py21
2 files changed, 22 insertions, 2 deletions
diff --git a/var/spack/packages/SAMRAI/package.py b/var/spack/packages/SAMRAI/package.py
index eef041f0d5..5ee90cf400 100644
--- a/var/spack/packages/SAMRAI/package.py
+++ b/var/spack/packages/SAMRAI/package.py
@@ -12,6 +12,7 @@ class Samrai(Package):
list_url = homepage
version('3.9.1', '232d04d0c995f5abf20d94350befd0b2')
+ version('3.8.0', 'c18fcffa706346bfa5828b36787ce5fe')
version('3.7.3', '12d574eacadf8c9a70f1bb4cd1a69df6')
version('3.7.2', 'f6a716f171c9fdbf3cb12f71fa6e2737')
version('3.6.3-beta', 'ef0510bf2893042daedaca434e5ec6ce')
@@ -37,8 +38,6 @@ class Samrai(Package):
configure(
"--prefix=%s" % prefix,
- "--with-CXX=%s" % spec[mpi].prefix.bin + "/mpic++",
- "--with-CC=%s" % spec[mpi].prefix.bin + "/mpicc",
"--with-hdf5=%s" % spec['hdf5'].prefix,
"--with-boost=%s" % spec['boost'].prefix,
"--with-zlib=%s" % spec['zlib'].prefix,
diff --git a/var/spack/packages/cleverleaf/package.py b/var/spack/packages/cleverleaf/package.py
new file mode 100644
index 0000000000..ddbe57f019
--- /dev/null
+++ b/var/spack/packages/cleverleaf/package.py
@@ -0,0 +1,21 @@
+from spack import *
+
+class Cleverleaf(Package):
+ """
+ CleverLeaf is a hydrodynamics mini-app that extends CloverLeaf with Adaptive
+ Mesh Refinement using the SAMRAI toolkit from Lawrence Livermore National
+ Laboratory. The primary goal of CleverLeaf is to evaluate the application of
+ AMR to the Lagrangian-Eulerian hydrodynamics scheme used by CloverLeaf.
+ """
+
+ homepage = "http://uk-mac.github.io/CleverLeaf/"
+ url = "https://github.com/UK-MAC/CleverLeaf/tarball/master"
+
+ version('develop', git='https://github.com/UK-MAC/CleverLeaf_ref.git', branch='develop')
+
+ depends_on("SAMRAI@3.8.0")
+
+ def install(self, spec, prefix):
+ cmake(*std_cmake_args)
+ make()
+ make("install")