Skip to content
Snippets Groups Projects
Commit 32a2a963 authored by Lionel GUEZ's avatar Lionel GUEZ
Browse files

Bug fix: write step to namelist

Required since commit ed60f104.
parent ed60f104
No related branches found
No related tags found
No related merge requests found
......@@ -174,8 +174,11 @@ while True:
nml = f90nml.Namelist()
nml["grid_nml"] = dict(corner_deg = [matlab_data["X"][0], matlab_data["Y"][0]],
nlon = matlab_data["X"].size,
nlat = matlab_data["Y"].size)
nlat = matlab_data["Y"].size,
step_deg = [matlab_data["X"][1] - matlab_data["X"][0],
matlab_data["Y"][1] - matlab_data["Y"][0]])
for f in factories:
nml.write(path.join(f["SHP_coll"], "grid_nml.txt"), force = True)
file = path.join(f["SHP_coll"], "grid_nml.txt")
nml.write(file, force = True)
for k, v in f["writers"].items(): v.close()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment