Skip to content
Closed
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed

- Fixed the out_dict for values from GEOSldas_LDAS.rc
- Fixed error from MAPL's ApplicationSupport.F90 to init UDUNITS.

### Removed
Expand Down
24 changes: 15 additions & 9 deletions GEOSldas_App/ldas_setup
Original file line number Diff line number Diff line change
Expand Up @@ -1823,18 +1823,24 @@ def _produceExeInput(out_dict=None,ladas_cpl=0):
# process lines that contain string "use_rc_defaults"
if use_rc_defaults in line:
line0 = line.split(use_rc_defaults)[1]
# strip out inline comment (if present)
position = line0.find('#')
if position>0:
line0 = line0[:position]
# extract key/value pair and add to dictionary
key, val = line0.split(":",1)
out_dict[key.strip()] = val.strip()


lines.append(line0)
print ()
print ()

if ladas_cpl > 0:
for line in lines:
line = line.strip()
if not line:
continue
if line.startswith('#'):
continue
# strip out inline comment (if present)
position = line.find('#')
if position>0:
line = line[:position]
# extract key/value pair and add to dictionary
key, val = line.split(":",1)
out_dict[key.strip()] = val.strip()

# -----------------------------------------------------------------------------------

Expand Down