Skip to content

Commit b7cb6a9

Browse files
Update to Setup translate
1 parent d860fb7 commit b7cb6a9

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

GEOSagcm_GridComp/GEOSphysics_GridComp/GEOSmoist_GridComp/pyMoist/tests/savepoint/GFDL_1M/translate_GFDL_1M_Setup.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,13 @@
33
from f90nml import Namelist
44

55
from ndsl import StencilFactory
6-
from ndsl.constants import X_DIM, Y_DIM, Z_DIM
76
from ndsl.stencils.testing.grid import Grid
87
from ndsl.stencils.testing.savepoint import DataLoader
98
from ndsl.stencils.testing.translate import TranslateFortranData2Py
109
from pyMoist.GFDL_1M.config import GFDL1MConfig
1110
from pyMoist.GFDL_1M.locals import GFDL1MLocals
1211
from pyMoist.GFDL_1M.setup import GFDL1MSetup
1312
from pyMoist.GFDL_1M.state import GFDL1MState
14-
from pyMoist.GFDL_1M.stencils import prepare_tendencies
1513
from pyMoist.saturation_tables.tables.main import SaturationVaporPressureTable
1614

1715

@@ -106,19 +104,12 @@ def compute(self, inputs):
106104
state.mixing_ratio.large_scale_ice.field[:] = inputs["mixing_ratio_large_scale_ice"]
107105
state.mixing_ratio.convective_ice.field[:] = inputs["mixing_ratio_convective_ice"]
108106

109-
# construct stencil that must be built outside of test class
110-
self.prepare_tendencies = self.stencil_factory.from_dims_halo(
111-
func=prepare_tendencies,
112-
compute_dims=[X_DIM, Y_DIM, Z_DIM],
113-
)
114-
115107
# initalize test class
116108
code = GFDL1MSetup(
117109
stencil_factory=self.stencil_factory,
118110
quantity_factory=self.quantity_factory,
119111
config=config,
120112
saturation_tables=self.saturation_tables,
121-
prepare_tendencies=self.prepare_tendencies,
122113
)
123114

124115
# execute test code

0 commit comments

Comments
 (0)