Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions docn/cime_config/buildnml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def _create_namelists(case, confdir, inst_string, infile, nmlgen, data_list_path

if case.get_value('PTS_LON'):
scol_lon = float(case.get_value('PTS_LON'))
else:
else:
scol_lon = -999.
if case.get_value('PTS_LAT'):
scol_lat = float(case.get_value('PTS_LAT'))
Expand All @@ -90,7 +90,8 @@ def _create_namelists(case, confdir, inst_string, infile, nmlgen, data_list_path
nmlgen.write_output_file(namelist_file, data_list_path, groups=['docn_nml'])

# Generate docn.streams.xml if needed
if (re.search(r'sst_aquap[0-9]+',docn_mode) is not None) or (docn_mode == 'sst_aquap_constant'):
print("docn_mode is {}".format(docn_mode))
if (re.search(r'sst_aquap[0-9]+',docn_mode) is not None) or (docn_mode == 'sst_aquap_constant') or (docn_mode == 'som_aquap'):
generate_stream_file = False
else:
generate_stream_file = True
Expand Down