summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorm-shunji <76516098+m-shunji@users.noreply.github.com>2021-02-07 20:47:54 +0900
committerGitHub <noreply@github.com>2021-02-07 12:47:54 +0100
commit6e29a36d880cbf03125815d8b99fc8c414e21e9f (patch)
treed844593e773e0f781323165fc0607444d7c7a9c0
parenteb3338ed1b9775e7e9c772c9dd7cc4ed1b37c9d5 (diff)
downloadspack-6e29a36d880cbf03125815d8b99fc8c414e21e9f.tar.gz
spack-6e29a36d880cbf03125815d8b99fc8c414e21e9f.tar.bz2
spack-6e29a36d880cbf03125815d8b99fc8c414e21e9f.tar.xz
spack-6e29a36d880cbf03125815d8b99fc8c414e21e9f.zip
mpas-model: add a necessary resource (#21478)
-rw-r--r--var/spack/repos/builtin/packages/mpas-model/package.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/mpas-model/package.py b/var/spack/repos/builtin/packages/mpas-model/package.py
index 65a10bdc2f..1a14b800f0 100644
--- a/var/spack/repos/builtin/packages/mpas-model/package.py
+++ b/var/spack/repos/builtin/packages/mpas-model/package.py
@@ -26,6 +26,15 @@ class MpasModel(MakefilePackage):
parallel = False
+ resource(when='@6.2:6.3',
+ name='MPAS-Data',
+ git='https://github.com/MPAS-Dev/MPAS-Data.git',
+ commit='33561790de8b43087ab850be833f51a4e605f1bb')
+ resource(when='@7.0',
+ name='MPAS-Data',
+ git='https://github.com/MPAS-Dev/MPAS-Data.git',
+ tag='v7.0')
+
def target(self, model, action):
spec = self.spec
satisfies = spec.satisfies
@@ -72,6 +81,8 @@ class MpasModel(MakefilePackage):
return targets
def build(self, spec, prefix):
+ copy_tree(join_path('MPAS-Data', 'atmosphere'),
+ join_path('src', 'core_atmosphere', 'physics'))
make(*self.target('init_atmosphere', 'all'))
mkdir('bin')
copy('init_atmosphere_model', 'bin')