Skip to content

Commit

Permalink
Moved CMAKE_Platform 5 lines after so that it will contains {target}.…
Browse files Browse the repository at this point in the history
…{COMPILER} (#28)
  • Loading branch information
ywangwof committed Oct 15, 2020
1 parent a9c5574 commit 81e8dd9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/build_forecast.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ else
fi

export COMPILER=intel
export CMAKE_Platform=${target}
if [ $target = 'wcoss_cray' -o $target = 'wcoss_dell_p3' ]; then
target=${target}
else
target=${target}.${COMPILER}
fi
export CMAKE_Platform=${target}

cd ufs_weather_model
model_top_dir=`pwd`
Expand All @@ -53,8 +53,8 @@ fi
# is the valid values for CCPP_PHYS_SUITE. Note that the result (stored
# in CCPP_SUITES) is a string consisting of a comma-separated list of all
# the valid (allowed) CCPP physics suites.
CCPP_SUITES=$(
. ../../regional_workflow/ush/valid_param_vals.sh
CCPP_SUITES=$(
. ../../regional_workflow/ush/valid_param_vals.sh
printf "%s," "${valid_vals_CCPP_PHYS_SUITE[@]}"
)
export CCPP_SUITES="${CCPP_SUITES:0: -1}" # Remove comma after last suite.
Expand Down

0 comments on commit 81e8dd9

Please sign in to comment.