From 6e29a36d880cbf03125815d8b99fc8c414e21e9f Mon Sep 17 00:00:00 2001 From: m-shunji <76516098+m-shunji@users.noreply.github.com> Date: Sun, 7 Feb 2021 20:47:54 +0900 Subject: [PATCH] mpas-model: add a necessary resource (#21478) --- .../repos/builtin/packages/mpas-model/package.py | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 @@ def target(self, model, action): 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')