spack/var/spack/repos/builtin/packages/cohmm/package.py
Todd Gamblin a8ccb8e116 copyrights: update all files with license headers for 2021
- [x] add `concretize.lp`, `spack.yaml`, etc. to licensed files
- [x] update all licensed files to say 2013-2021 using
      `spack license update-copyright-year`
- [x] appease mypy with some additions to package.py that needed
      for oneapi.py
2021-01-02 12:12:00 -08:00

38 lines
1.4 KiB
Python

# Copyright 2013-2021 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)
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)