From 15ff6eb1f799acb658b87acf88aaa4c2e394199e Mon Sep 17 00:00:00 2001 From: Johannes Keller <16795031+jjokella@users.noreply.github.com> Date: Wed, 27 Nov 2024 14:57:41 +0100 Subject: [PATCH] build_tsmp2: correct check for alternative `parflow` (#41) `sub_srcname` contains the string `parflow`, while `comp_name` takes the variable `parflow` that contains `y` or `n`. --- build_tsmp2.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_tsmp2.sh b/build_tsmp2.sh index eba25ab..2ea274e 100755 --- a/build_tsmp2.sh +++ b/build_tsmp2.sh @@ -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})