|
3 | 3 | from f90nml import Namelist |
4 | 4 |
|
5 | 5 | from ndsl import StencilFactory |
6 | | -from ndsl.constants import X_DIM, Y_DIM, Z_DIM |
7 | 6 | from ndsl.stencils.testing.grid import Grid |
8 | 7 | from ndsl.stencils.testing.savepoint import DataLoader |
9 | 8 | from ndsl.stencils.testing.translate import TranslateFortranData2Py |
10 | 9 | from pyMoist.GFDL_1M.config import GFDL1MConfig |
11 | 10 | from pyMoist.GFDL_1M.locals import GFDL1MLocals |
12 | 11 | from pyMoist.GFDL_1M.setup import GFDL1MSetup |
13 | 12 | from pyMoist.GFDL_1M.state import GFDL1MState |
14 | | -from pyMoist.GFDL_1M.stencils import prepare_tendencies |
15 | 13 | from pyMoist.saturation_tables.tables.main import SaturationVaporPressureTable |
16 | 14 |
|
17 | 15 |
|
@@ -106,19 +104,12 @@ def compute(self, inputs): |
106 | 104 | state.mixing_ratio.large_scale_ice.field[:] = inputs["mixing_ratio_large_scale_ice"] |
107 | 105 | state.mixing_ratio.convective_ice.field[:] = inputs["mixing_ratio_convective_ice"] |
108 | 106 |
|
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 | | - |
115 | 107 | # initalize test class |
116 | 108 | code = GFDL1MSetup( |
117 | 109 | stencil_factory=self.stencil_factory, |
118 | 110 | quantity_factory=self.quantity_factory, |
119 | 111 | config=config, |
120 | 112 | saturation_tables=self.saturation_tables, |
121 | | - prepare_tendencies=self.prepare_tendencies, |
122 | 113 | ) |
123 | 114 |
|
124 | 115 | # execute test code |
|
0 commit comments