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
|
# Copyright 2013-2024 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 spack.package import *
class Cohmm(MakefilePackage):
"""An anticipated important use-case for next-generation supercomputing
is multiscale modeling, in which continuum equations for large-scale
material deformation are augmented with high-fidelity, fine-scale
simulations that provide constitutive data on demand.
"""
tags = ["proxy-app"]
homepage = "http://www.exmatex.org/cohmm.html"
git = "https://github.com/exmatex/CoHMM.git"
version("develop", branch="sad")
variant("openmp", default=True, description="Build with OpenMP Support")
variant("gnuplot", default=False, description="Enable gnu plot Support")
depends_on("gnuplot", when="+gnuplot")
def edit(self, spec, prefix):
if "+openmp" in spec:
filter_file("DO_OPENMP = O.*", "DO_OPENMP = ON", "Makefile")
if "+gnuplot" in spec:
filter_file("DO_GNUPLOT = O.*", "DO_GNUPLOT = ON", "Makefile")
def install(self, spec, prefix):
mkdirp(prefix.bin)
mkdirp(prefix.input)
mkdirp(prefix.doc)
install("cohmm", prefix.bin)
install("README.md", prefix.doc)
install("LICENSE.md", prefix.doc)
install("input/*.*", prefix.input)
|