Skip to content

Commit

Permalink
Update WCOSS2 env file for SC2034
Browse files Browse the repository at this point in the history
- SC2034 (warning): NTASKS appears unused. Verify use (or export if used externally).
- Add "export" for NTASKS variable setting in waveprep if-block.

Refs NOAA-EMC#397
  • Loading branch information
KateFriedman-NOAA committed Nov 18, 2022
1 parent 6cd424d commit 5ebd819
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion env/WCOSS2.env
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ if [[ "${step}" = "prep" ]] || [[ "${step}" = "prepbufr" ]]; then

elif [[ "${step}" = "waveinit" ]] || [[ "${step}" = "waveprep" ]] || [[ "${step}" = "wavepostsbs" ]] || [[ "${step}" = "wavepostbndpnt" ]] || [[ "${step}" = "wavepostbndpntbll" ]] || [[ "${step}" = "wavepostpnt" ]]; then

if [[ "${step}" = "waveprep" ]] && [[ "${CDUMP}" = "gfs" ]]; then NTASKS=${NTASKS_gfs} ; fi
if [[ "${step}" = "waveprep" ]] && [[ "${CDUMP}" = "gfs" ]]; then export NTASKS=${NTASKS_gfs} ; fi
export wavempexec="${launcher} -np"
export wave_mpmd=${mpmd_opt}

Expand Down

0 comments on commit 5ebd819

Please sign in to comment.