mpas-model: add a necessary resource (#21478)
This commit is contained in:
parent
eb3338ed1b
commit
6e29a36d88
1 changed files with 11 additions and 0 deletions
|
@ -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')
|
||||||
|
|
Loading…
Reference in a new issue