From 58b4b5f164d44185b5fd69c5648d2f6506da803a Mon Sep 17 00:00:00 2001 From: Weiyuan Jiang Date: Thu, 13 Oct 2022 09:48:58 -0400 Subject: [PATCH 1/5] load and launch totalview in lenkf.j --- src/Applications/LDAS_App/lenkf.j.template | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/Applications/LDAS_App/lenkf.j.template b/src/Applications/LDAS_App/lenkf.j.template index 21b68347..6ff1983f 100644 --- a/src/Applications/LDAS_App/lenkf.j.template +++ b/src/Applications/LDAS_App/lenkf.j.template @@ -383,17 +383,11 @@ while ( $counter <= ${NUM_SGMT} ) echo "" echo "------------------------------------------------------------------" echo "" - echo "lenkf.j -debug:" + echo "lenkf.j -debug" echo "" - echo "To start debugging, you must now manually launch your debugging tool" - echo "with GEOSldas.x from here, e.g.," - echo "" - echo " totalview $GEOSBIN/GEOSldas.x" - echo "" - echo "Availability of tools depends on the computing system and may require" - echo "loading modules. For more information, check with your computing center." - echo "See also GEOSldas Wiki at https://github.com/GEOS-ESM/GEOSldas/wiki" echo "" + module load tview + totalview & exit endif From 8902c42f708b3c7593381ff3395d1921f6692332 Mon Sep 17 00:00:00 2001 From: Rolf Reichle <54944691+gmao-rreichle@users.noreply.github.com> Date: Thu, 13 Oct 2022 17:29:55 -0400 Subject: [PATCH 2/5] additional edits for debug mode (lenkf.j.template) an attempt to get back to the original, system-agnostic approach of stopping lenkf.j before manually launching the debugger; probably needs further tweaking --- src/Applications/LDAS_App/lenkf.j.template | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/Applications/LDAS_App/lenkf.j.template b/src/Applications/LDAS_App/lenkf.j.template index 6ff1983f..2107c6cd 100644 --- a/src/Applications/LDAS_App/lenkf.j.template +++ b/src/Applications/LDAS_App/lenkf.j.template @@ -38,7 +38,9 @@ endif unset argv setenv argv -source $GEOSBIN/g5_modules +if ( $debug_flag == 0 ) then + source $GEOSBIN/g5_modules +endif setenv I_MPI_DAPL_UD enable @@ -383,7 +385,17 @@ while ( $counter <= ${NUM_SGMT} ) echo "" echo "------------------------------------------------------------------" echo "" - echo "lenkf.j -debug" + echo "lenkf.j -debug:" + echo "" + echo "To start debugging, you must now manually source g5_modules and launch" + echo "your debugging tool with GEOSldas.x from here, e.g.," + echo "" + echo " source $GEOSBIN/g5_modules [for bash or zsh: source g5_modules.[z]sh]" + echo " totalview $GEOSBIN/GEOSldas.x" + echo "" + echo "Availability of tools depends on the computing system and may require" + echo "loading modules. For more information, check with your computing center." + echo "See also GEOSldas Wiki at https://github.com/GEOS-ESM/GEOSldas/wiki" echo "" echo "" module load tview From f6251edcdedba2272839f5d7121a3d3994b139cb Mon Sep 17 00:00:00 2001 From: Rolf Reichle <54944691+gmao-rreichle@users.noreply.github.com> Date: Thu, 13 Oct 2022 17:31:09 -0400 Subject: [PATCH 3/5] fixing previous commit --- src/Applications/LDAS_App/lenkf.j.template | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/Applications/LDAS_App/lenkf.j.template b/src/Applications/LDAS_App/lenkf.j.template index 2107c6cd..f768e3f3 100644 --- a/src/Applications/LDAS_App/lenkf.j.template +++ b/src/Applications/LDAS_App/lenkf.j.template @@ -397,9 +397,6 @@ while ( $counter <= ${NUM_SGMT} ) echo "loading modules. For more information, check with your computing center." echo "See also GEOSldas Wiki at https://github.com/GEOS-ESM/GEOSldas/wiki" echo "" - echo "" - module load tview - totalview & exit endif From 9fa58d0fe7a2333790de1847826eec5e06e93f3f Mon Sep 17 00:00:00 2001 From: Rolf Reichle <54944691+gmao-rreichle@users.noreply.github.com> Date: Fri, 14 Oct 2022 10:06:05 -0400 Subject: [PATCH 4/5] undoing conditional around source g5_modules (lenkf.j.template) --- src/Applications/LDAS_App/lenkf.j.template | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Applications/LDAS_App/lenkf.j.template b/src/Applications/LDAS_App/lenkf.j.template index f768e3f3..86d616b7 100644 --- a/src/Applications/LDAS_App/lenkf.j.template +++ b/src/Applications/LDAS_App/lenkf.j.template @@ -38,9 +38,7 @@ endif unset argv setenv argv -if ( $debug_flag == 0 ) then - source $GEOSBIN/g5_modules -endif +source $GEOSBIN/g5_modules setenv I_MPI_DAPL_UD enable From a9f084bf4c8ce2038f69af195478ee4a4fe8ac6a Mon Sep 17 00:00:00 2001 From: Rolf Reichle <54944691+gmao-rreichle@users.noreply.github.com> Date: Mon, 17 Oct 2022 14:52:38 -0400 Subject: [PATCH 5/5] minor revisions to debugging instructions --- src/Applications/LDAS_App/lenkf.j.template | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Applications/LDAS_App/lenkf.j.template b/src/Applications/LDAS_App/lenkf.j.template index 86d616b7..428ee089 100644 --- a/src/Applications/LDAS_App/lenkf.j.template +++ b/src/Applications/LDAS_App/lenkf.j.template @@ -385,10 +385,12 @@ while ( $counter <= ${NUM_SGMT} ) echo "" echo "lenkf.j -debug:" echo "" - echo "To start debugging, you must now manually source g5_modules and launch" - echo "your debugging tool with GEOSldas.x from here, e.g.," + echo "To start debugging, you must now go to the experiment's scratch directory." + echo "From there, source g5_modules and launch your debugging tool with GEOSldas.x, e.g.," echo "" + echo " cd $SCRDIR echo " source $GEOSBIN/g5_modules [for bash or zsh: source g5_modules.[z]sh]" + echo " module load tview [at NCCS] echo " totalview $GEOSBIN/GEOSldas.x" echo "" echo "Availability of tools depends on the computing system and may require"