diff --git a/build_tsmp2.sh b/build_tsmp2.sh index 1b54ad6..feee791 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})