mpas-model: add a necessary resource (#21478)

This commit is contained in:
m-shunji 2021-02-07 20:47:54 +09:00 committed by GitHub
parent eb3338ed1b
commit 6e29a36d88
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,6 +26,15 @@ class MpasModel(MakefilePackage):
parallel = False 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): def target(self, model, action):
spec = self.spec spec = self.spec
satisfies = spec.satisfies satisfies = spec.satisfies
@ -72,6 +81,8 @@ def target(self, model, action):
return targets return targets
def build(self, spec, prefix): def build(self, spec, prefix):
copy_tree(join_path('MPAS-Data', 'atmosphere'),
join_path('src', 'core_atmosphere', 'physics'))
make(*self.target('init_atmosphere', 'all')) make(*self.target('init_atmosphere', 'all'))
mkdir('bin') mkdir('bin')
copy('init_atmosphere_model', 'bin') copy('init_atmosphere_model', 'bin')