From 242a55f7eaeb893c6866469c289a0e1b28136fcc Mon Sep 17 00:00:00 2001 From: Erik Kluzek Date: Mon, 2 Dec 2024 03:10:22 -0700 Subject: [PATCH] Fix bug in input to conda_for_host and add izumi handling --- .../FatesSetupParamBuild/run_shell_commands_tests | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/cime_config/testdefs/testmods_dirs/clm/FatesSetupParamBuild/run_shell_commands_tests b/cime_config/testdefs/testmods_dirs/clm/FatesSetupParamBuild/run_shell_commands_tests index cf678fefaa..abbcc85a08 100755 --- a/cime_config/testdefs/testmods_dirs/clm/FatesSetupParamBuild/run_shell_commands_tests +++ b/cime_config/testdefs/testmods_dirs/clm/FatesSetupParamBuild/run_shell_commands_tests @@ -5,8 +5,8 @@ # Load or unload conda conda_for_host() { - host=$0 - type=$1 + host=$1 + type=$2 if [[ "$host" =~ derecho*.hpc.ucar.edu || "$host" =~ d*.hpc.ucar.edu ]] ; then echo "Running on Derecho..." >&1 if [[ "$type" == "load" ]]; then @@ -14,6 +14,14 @@ conda_for_host() { else module unload conda fi + elif [[ "$host" =~ izumi.cgd.ucar.edu || "$host" =~ i*.cgd.ucar.edu ]] ; then + echo "Running on Izumi..." >&1 + . /usr/share/Modules/init/sh + if [[ "$type" == "load" ]]; then + module load lang/anaconda + else + module unload lang/anaconda + fi else echo "Not a recognized host: $host" >&1 fi