Skip to content

Commit

Permalink
Replace CROW yaml nst_spinup_logic in nsst.yaml with NST_SPINUP variable
Browse files Browse the repository at this point in the history
- removed CROW FirstTrue check when building config.nsst from nsst.yaml
- replace nst_spinup_logic with NST_SPINUP variable that is parsed from variable dictionary
- nst_spinup_logic not needed currently

Refs: NOAA-EMC#230
  • Loading branch information
KateFriedman-NOAA committed Jul 8, 2021
1 parent 5bec2a7 commit bbcad18
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions workflow/config/nsst.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,6 @@

config_nsst:
filename: config.nsst
nst_spinup_logic: !FirstTrue
- when: !calc doc.nsst.get("NST_SPINUP","")
do: !expand "export NST_SPINUP={doc.nsst.NST_SPINUP}"
- otherwise: |
export NST_SPINUP=0
#if [[ "$CDATE" = $SDATE ]]; then
# export NST_SPINUP=1
#fi
content: !expand |
#!/bin/ksh -x
Expand All @@ -30,7 +22,7 @@ config_nsst:
export NST_MODEL={doc.nsst.NST_MODEL}
# nstf_name(2) : NST_SPINUP : 0 = OFF, 1 = ON,
{nst_spinup_logic}
export NST_SPINUP={doc.nsst.NST_SPINUP}
# nstf_name(3) : NST_RESV (Reserved, NSST Analysis) : 0 = OFF, 1 = ON
export NST_RESV={doc.nsst.NST_RESV}
Expand Down

0 comments on commit bbcad18

Please sign in to comment.