Skip to content

Commit

Permalink
build_tsmp2: correct check for alternative parflow (#41)
Browse files Browse the repository at this point in the history
`sub_srcname` contains the string `parflow`, while `comp_name` takes
the variable `parflow` that contains `y` or `n`.
  • Loading branch information
jjokella authored Nov 27, 2024
1 parent 9685f38 commit 15ff6eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build_tsmp2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ local -n comp_namey=$1
local -n comp_srcname=$2
sub_srcname=$3
if [ -n "${comp_namey}" ] && [ -z "${comp_srcname}" ];then
if [ "${comp_name}" = "parflow" ] && [ -n "${pdaf}" ];then
if [ "${sub_srcname}" = "parflow" ] && [ -n "${pdaf}" ];then
submodule_name=$(echo "models/${sub_srcname}_pdaf")
else
submodule_name=$(echo "models/"${sub_srcname})
Expand Down

0 comments on commit 15ff6eb

Please sign in to comment.