Skip to content

Commit

Permalink
Merge pull request #232 from ekluzek/removetabsindatmbuildnml
Browse files Browse the repository at this point in the history
Remove the tabs in the datm buildnml
  • Loading branch information
jedwards4b authored May 9, 2023
2 parents f2c4fe1 + 977260a commit 0afab9d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,9 @@
*.out
*.app

# Externals
fox
share/genf90

# ignore pycache
__pycache__
10 changes: 5 additions & 5 deletions datm/cime_config/buildnml
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ def _get_neon_data_availability(case, neonsite):

for version in dataversions:
# Once a date range for a version has been determined for any version, the loop is complete.
# Eg, if data is available for v3, the loop will not continue to v2;
# however, if data is not available for v3, it will check for v2.
# Thus, it is important for dataversions to be listed from newest to oldest.
if not newestdate:
# Eg, if data is available for v3, the loop will not continue to v2;
# however, if data is not available for v3, it will check for v2.
# Thus, it is important for dataversions to be listed from newest to oldest.
if not newestdate:
with open(fullpath, "r") as fd:
for line in fd.readlines():
fpath, fname = os.path.split(line)
Expand Down Expand Up @@ -220,7 +220,7 @@ def _create_drv_flds_in(case, confdir):
# for now we are hard-coding this file name and values because we only need it for ozone
if datm_preso3 != "none":

# Generate drv_flds_in file
# Generate drv_flds_in file
outfile = os.path.join(confdir, "drv_flds_in")
ozone_nl_name = "&ozone_coupling_nl"
ozone_freq_par = "atm_ozone_frequency"
Expand Down

0 comments on commit 0afab9d

Please sign in to comment.