CMake netCDF Compatibility with WPS (#2121)
[WRF.git] / .ci / env / derecho.sh
blob2feea5c9eece56e0da42fe9484f014562d52d8e3
1 #!/bin/sh
3 echo "Setting up derecho environment"
4 workingDirectory=$PWD
5 . /etc/profile.d/z00_modules.sh
6 echo "Loading modules : $*"
7 cmd="module purge"
8 echo $cmd && eval "${cmd}"
10 # We should be handed in the modules to load
11 while [ $# -gt 0 ]; do
12 cmd="module load $1"
13 echo $cmd && eval "${cmd}"
14 shift
15 done
17 # Go back to working directory if for unknown reason HPC config changing your directory on you
18 if [ "$workingDirectory" != "$PWD" ]; then
19 echo "derecho module loading changed working directory"
20 echo " Moving back to $workingDirectory"
21 cd $workingDirectory