1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from typing import List
from spack.package import *
class Remhos(MakefilePackage):
"""Remhos (REMap High-Order Solver) is a CEED miniapp that performs monotonic
and conservative high-order discontinuous field interpolation (remap)
using DG advection-based spatial discretization and explicit high-order
time-stepping.
"""
tags = ["proxy-app"]
homepage = "https://github.com/CEED/Remhos"
url = "https://github.com/CEED/Remhos/archive/v1.0.tar.gz"
git = "https://github.com/CEED/Remhos.git"
maintainers("v-dobrev", "tzanio", "vladotomov")
license("BSD-2-Clause")
version("develop", branch="master")
version("1.0", sha256="e60464a867fe5b1fd694fbb37bb51773723427f071c0ae26852a2804c08bbb32")
variant("metis", default=True, description="Enable/disable METIS support")
depends_on("mfem+mpi+metis", when="+metis")
depends_on("mfem+mpi~metis", when="~metis")
depends_on("mfem@develop", when="@develop")
depends_on("mfem@4.1.0:", when="@1.0")
@property
def build_targets(self):
targets = []
spec = self.spec
targets.append("MFEM_DIR=%s" % spec["mfem"].prefix)
targets.append("CONFIG_MK=%s" % spec["mfem"].package.config_mk)
targets.append("TEST_MK=%s" % spec["mfem"].package.test_mk)
return targets
# See lib/spack/spack/build_systems/makefile.py
def check(self):
with working_dir(self.build_directory):
make("tests", *self.build_targets)
def install(self, spec, prefix):
mkdirp(prefix.bin)
install("remhos", prefix.bin)
install_time_test_callbacks: List[str] = []
|