Skip to content
Snippets Groups Projects
Commit 5d50a6f8 authored by Oriol Tintó's avatar Oriol Tintó
Browse files

Replace % with # in the namelist placeholders

parent 0e01162b
No related branches found
No related tags found
No related merge requests found
atmosphere_namelist_ideal: |
&output_nml
/
&output_nml
steps_per_file = 1
20201001
output_start = '2020-10-01T06:00:00Z'
output_end = '2020-10-01T06:00:00Z'
output_filename = "init-test-ext"
include_last = .true.
output_interval = 'PT3600S'
ml_varlist = 'depth_lk', 'emis_rad', 'fr_lake', 'fr_land', 'topography_c', 'soiltyp', 'sso_stdh', 'sso_theta', 'sso_gamma', 'sso_sigma'
/
......@@ -57,8 +57,8 @@
! LATBC files, these files will be used as input for the next example.
&output_nml
file_interval = 'PT3600S'
output_start = '%OUTPUT_START%'
output_end = '%OUTPUT_END%'
output_start = '#OUTPUT_START#'
output_end = '#OUTPUT_END#'
output_filename = "latbc"
output_interval = 'PT3600S'
include_last = .true.
......@@ -68,8 +68,6 @@
! First Guess file
&output_nml
file_interval = 'PT3600S'
output_start = '%OUTPUT_START%'
output_end = '%OUTPUT_END%'
output_filename = "init"
output_interval = 'PT3600S'
include_last = .true.
......
......@@ -40,8 +40,8 @@
! the following two output files are used to initialize the next run
&output_nml
file_interval = 'PT3600S'
output_start = '%OUTPUT_START%'
output_end = '%OUTPUT_END%'
output_start = '#OUTPUT_START#'
output_end = '#OUTPUT_END#'
output_filename = "init-test"
output_interval = 'PT3600S'
include_last = .true.
......@@ -49,12 +49,3 @@
taxis_tunit = 1
ml_varlist = 'group:dwd_fg_atm_vars', 'group:dwd_fg_sfc_vars'
/
&output_nml
steps_per_file = 1
output_start = '%OUTPUT_START%'
output_end = '%OUTPUT_START%'
output_filename = "init-test-ext"
include_last = .true.
output_interval = 'PT3600S'
ml_varlist = 'depth_lk', 'emis_rad', 'fr_lake', 'fr_land', 'topography_c', 'soiltyp', 'sso_stdh', 'sso_theta', 'sso_gamma', 'sso_sigma'
/
......@@ -53,8 +53,8 @@
! First Guess file
&output_nml
file_interval = 'PT3600S'
output_start = '%OUTPUT_START%'
output_end = '%OUTPUT_START%'
output_start = '#OUTPUT_START#'
output_end = '#OUTPUT_START#'
output_filename = "init"
output_interval = 'PT3600S'
include_last = .true.
......
......@@ -105,9 +105,9 @@ def patch_output_entries(namelist: f90nml.Namelist) -> f90nml.Namelist:
output_entries = [entry for entry in namelist["output_nml"]]
for entry in output_entries:
for key in entry:
if entry[key] == "%OUTPUT_START%":
if entry[key] == "#OUTPUT_START#":
entry[key] = Chunk_START_DATE.strftime(date_format)
elif entry[key] == "%OUTPUT_END%":
elif entry[key] == "#OUTPUT_END#":
entry[key] = Chunk_END_DATE.strftime(date_format)
return namelist
......
......@@ -96,9 +96,9 @@ def patch_output_entries(namelist: f90nml.Namelist) -> f90nml.Namelist:
output_entries = [entry for entry in namelist["output_nml"]]
for entry in output_entries:
for key in entry:
if entry[key] == "%OUTPUT_START%":
if entry[key] == "#OUTPUT_START#":
entry[key] = Chunk_START_DATE.strftime(date_format)
elif entry[key] == "%OUTPUT_END%":
elif entry[key] == "#OUTPUT_END#":
entry[key] = Chunk_END_DATE.strftime(date_format)
return namelist
......
......@@ -104,9 +104,9 @@ def patch_output_entries(namelist: f90nml.Namelist) -> f90nml.Namelist:
output_entries = [entry for entry in namelist["output_nml"]]
for entry in output_entries:
for key in entry:
if entry[key] == "%OUTPUT_START%":
if entry[key] == "#OUTPUT_START#":
entry[key] = Chunk_START_DATE.strftime(date_format)
elif entry[key] == "%OUTPUT_END%":
elif entry[key] == "#OUTPUT_END#":
entry[key] = Chunk_END_DATE.strftime(date_format)
return namelist
......
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