Browse Source

module (un)load bugfix

Charles Pelletier 3 years ago
parent
commit
fa8448badb
1 changed files with 5 additions and 4 deletions
  1. 5 4
      templates/scripts/skeleton_isfcpl.sh

+ 5 - 4
templates/scripts/skeleton_isfcpl.sh

@@ -635,11 +635,12 @@ do
             printf "init_bathy=${init_bathy}\n" >> ${start_dir}/isfcpl.track
             printf "curr_bathy_file=${curr_bathy_file}\n" >> ${start_dir}/isfcpl.track
 
-            module purge
-            module load ${module_list:?}
-            export LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+${LD_LIBRARY_PATH}:}"${extralibs_list}"
-
         fi
+
+        module purge
+        module load ${module_list:?}
+        export LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+${LD_LIBRARY_PATH}:}"${extralibs_list}"
+
     fi
 
     # -------------------------------------------------------------------------