From e94676940ac928bb51906db24cd1c1638609d6f1 Mon Sep 17 00:00:00 2001 From: AlexanderRichert-NOAA Date: Sat, 27 Jan 2024 00:45:31 +0000 Subject: [PATCH] fix meta_modules.py when building mpi --- spack-ext/lib/jcsda-emc/spack-stack/stack/meta_modules.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spack-ext/lib/jcsda-emc/spack-stack/stack/meta_modules.py b/spack-ext/lib/jcsda-emc/spack-stack/stack/meta_modules.py index b6f1e521e..38d66fa31 100755 --- a/spack-ext/lib/jcsda-emc/spack-stack/stack/meta_modules.py +++ b/spack-ext/lib/jcsda-emc/spack-stack/stack/meta_modules.py @@ -600,10 +600,10 @@ def setup_meta_modules(): # and load it with the wrapper, don't set any of the other substitutes module = "{}/{}".format(mpi_name, mpi_version) substitutes["MODULELOADS"] += module_load_command( - module_choice, module + module_choice, module.split("-")[0] ).rstrip("\n") substitutes["MODULEPREREQS"] += module_prereq_command( - module_choice, module + module_choice, module.split("-")[0] ).rstrip("\n") logging.debug( " ... ... MODULELOADS: {}".format(substitutes["MODULELOADS"])