Commit 300fd05a authored by Paulo Medeiros's avatar Paulo Medeiros
Browse files

Removed unused "tstep" from domain configs

parent 9d978064
Pipeline #10364 failed with stage
in 0 seconds
......@@ -70,7 +70,6 @@
# <https://hirlam.org/trac/wiki/HarmonieSystemDocumentation/ModelDomain>
# <https://hirlam.org/trac/browser/Harmonie/scr/Harmonie_domains.pm>
name = ""
tstep = 75
nlon = 900
nlat = 960
lonc = 16.763011639
......
......@@ -460,7 +460,6 @@ with config_section("domain") as section:
# These defaults are for the METCOOP25C domain. See
# <https://hirlam.org/trac/wiki/HarmonieSystemDocumentation/ModelDomain>
# <https://hirlam.org/trac/browser/Harmonie/scr/Harmonie_domains.pm>
config_metadata.register("tstep", default=75, minval=0, astype=int)
config_metadata.register("nlon", default=900, minval=1, astype=int)
config_metadata.register("nlat", default=960, minval=1, astype=int)
config_metadata.register(
......
......@@ -38,13 +38,10 @@ class GridAxisConfig:
class Grid2D:
"""A general grid in two dimensions, named x and y by convention."""
def __init__(self, xaxis, yaxis, tstep=0.0):
def __init__(self, xaxis, yaxis):
"""Initialise params. Axis limits are open-ended intervals."""
self._xaxis = self._validated_axis_info(xaxis)
self._yaxis = self._validated_axis_info(yaxis)
if tstep < 0:
raise ValueError("tstep must be >= 0")
self.tstep = tstep
self.cart2grid = np.vectorize(self._cart2grid_non_vec)
......@@ -356,7 +353,6 @@ class Domain:
ezone_ngrid=0,
subdomain_split=(1, 1),
coarse_grid_factor=0,
tstep=0.0,
):
"""Initialise name, geometry, projection & grid/thinning grid attrs."""
self.name = name
......@@ -418,12 +414,7 @@ class Domain:
npts_ezone=ezone_ngrid,
)
# (d) Set _grid attr
return DomainGrid(
xaxis=grid_xaxis,
yaxis=grid_yaxis,
proj=proj,
tstep=tstep,
)
return DomainGrid(xaxis=grid_xaxis, yaxis=grid_yaxis, proj=proj)
self._grid = init_grid(ngrid_lonlat, grid_spacing, ezone_ngrid)
......@@ -465,7 +456,6 @@ class Domain:
lmrt=config.lmrt,
subdomain_split=(config.split.lon, config.split.lat),
coarse_grid_factor=config.thinning_grid_coarse_factor,
tstep=config.tstep,
)
def _auto_choose_projname(self, lat0, y_range):
......@@ -584,7 +574,6 @@ class Domain:
# We don't want the splits to have extension zones
ezone_ngrid=0,
lmrt=self.lmrt,
tstep=self.grid.tstep,
)
splits.append(split)
return splits
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment