Skip to content

Commit ad38e20

Browse files
committed
Add parallel_executable argument
Addresses bug introduced by the inclusion of the parallel_executable argument in interp_gridded2mali
1 parent 50f8ab0 commit ad38e20

File tree

1 file changed

+9
-3
lines changed
  • compass/landice/tests/uummannaq_disko

1 file changed

+9
-3
lines changed

compass/landice/tests/uummannaq_disko/mesh.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,14 @@ def run(self):
6666
Run this step of the test case
6767
"""
6868
logger = self.logger
69+
config = self.config
70+
6971
section_name = 'mesh'
7072

71-
section_gis = self.config['greenland']
73+
section_gis = config['greenland']
7274

75+
parallel_executable = config.get('parallel',
76+
'parallel_executable')
7377
nProcs = section_gis.get('nProcs')
7478
src_proj = section_gis.get("src_proj")
7579
data_path = section_gis.get('data_path')
@@ -105,14 +109,16 @@ def run(self):
105109

106110
# Now perform bespoke interpolation of geometry and velocity data
107111
# from their respective sources
108-
interp_gridded2mali(self, bedmachine_dataset, dst_scrip_file, nProcs,
112+
interp_gridded2mali(self, bedmachine_dataset, dst_scrip_file,
113+
parallel_executable, nProcs,
109114
self.mesh_filename, src_proj, variables="all")
110115

111116
# only interpolate a subset of MEaSUREs variables onto the MALI mesh
112117
measures_vars = ['observedSurfaceVelocityX',
113118
'observedSurfaceVelocityY',
114119
'observedSurfaceVelocityUncertainty']
115-
interp_gridded2mali(self, measures_dataset, dst_scrip_file, nProcs,
120+
interp_gridded2mali(self, measures_dataset, dst_scrip_file,
121+
parallel_executable, nProcs,
116122
self.mesh_filename, src_proj,
117123
variables=measures_vars)
118124

0 commit comments

Comments
 (0)