Skip to content

Commit 05b1310

Browse files
authored
Update environment file for MeteoSwiss software stack 'inn' (v8). (#11)
* Update environment file for MeteoSwiss software stack 'inn' (v8). * Drop obsolete arolla/tsa support.
1 parent 21dfb38 commit 05b1310

File tree

1 file changed

+6
-16
lines changed

1 file changed

+6
-16
lines changed

src/CSCS.env

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,23 @@
1+
# Environment to compile and run FLEXPART
12
# Load environment depending on $HOST
23
case "$HOST" in
34
balfrin* | tasna*)
45
# Use MeteoSwiss software stack in USER_ENV_ROOT
56
if [[ $MODULEPATH != *$USER_ENV_ROOT/modules* ]] ;then
67
echo "WARNING: MODULEPATH does not contain default MeteoSwiss software stack," \
78
"load with 'module use $USER_ENV_ROOT/modules' if needed."
8-
99
fi
10-
11-
module load gcc/11.3.0
10+
# Load modules for compiler and NetCDF
11+
module load gcc/12.3.0
1212
module load netcdf-fortran/4.5.4-serial-gcc
1313
module load netcdf-c/4.8.1-serial-gcc # To make nc-config available
14-
module load eccodes/2.25.0-gcc
15-
14+
# Load module for eccodes (ECMWF software)
15+
module load eccodes/2.36.4-gcc
16+
# Export environment for makefile_meteoswiss
1617
export ECCODES_LD_FLAGS="-L${ECCODES_DIR}/lib64 -leccodes_f90"
1718
export NETCDF_FORTRAN_INCLUDE="$(pkg-config netcdf-fortran --cflags) $(pkg-config netcdf --cflags)"
1819
export NETCDF_FORTRAN_LD_FLAGS="$(pkg-config netcdf-fortran --libs) $(pkg-config netcdf --libs)"
1920
;;
20-
tsa* | arolla*)
21-
module load PrgEnv-gnu/19.2-nocuda
22-
module load netcdf-fortran/4.4.5-foss-2019b
23-
source ~osm/.opr_setup_dir
24-
module use --append ${OPR_SETUP_DIR}/modules/modulefiles
25-
module load eccodes/2.19.0-gnu-8.3.0-nocuda-noomp
26-
27-
export ECCODES_DIR=${ECCODESROOT}
28-
export NETCDF_FORTRAN_INCLUDE=-I${EBROOTNETCDFMINFORTRAN}/include
29-
export NETCDF_FORTRAN_LD_FLAGS=-lnetcdff
30-
;;
3121
*)
3222
echo "ERROR loading environment, unknown host: $HOST"
3323
esac

0 commit comments

Comments
 (0)