source: BOL/LMDZ_Setup/lmdz_env.sh @ 4719

Last change on this file since 4719 was 4615, checked in by asima, 12 months ago

Initial import of LMDZ_Setup environment
(former TEST_PROD which was distributed as tutorial_prod.tar).

See also related doc LMDZ_Setup_HowTo (former tutorial_prod_FAQ) :
https://docs.google.com/document/d/1OLZG6e-86NiXuv5-aALxKIh-QPkp4BdCwWtiBFot-6c

This initial import corresponds to TEST_PROD from
https://lmdz.lmd.jussieu.fr/pub/Training/Archive/tutorial_prod.tar_v20230707.

Previous versions of tutorial_prod.tar are available at
https://lmdz.lmd.jussieu.fr/pub/Training/Archive

File size: 1.8 KB
Line 
1
2##############################################################
3# Gestion des modules
4##############################################################
5
6hostname=jean-zay-pp2
7echo lmdz_env $hostname 0:3 ${hostname:0:3}
8
9case ${hostname:0:5} in
10
11        jean-) ARCH=X64_JEANZAY
12                module purge
13                compilo=19.0.4 # available 2013.0, 2017.2
14                module load intel-compilers/$compilo
15                #module load intel-mpi/$compilo
16                module load intel-mkl/$compilo
17                module load hdf5/1.10.5-mpi
18                module load netcdf/4.7.2-mpi
19                module load netcdf-fortran/4.5.2-mpi
20                module load subversion/1.9.7
21                #Pour module gcc, voir : https://trac.lmd.jussieu.fr/LMDZ/wiki/PortageJeanZay
22                #module load gcc/6.5.0
23                module load nco
24                module load cdo
25                # Imputation de la consommation sur le groupe (projet) actif par defaut,
26                #   idrproj indique le groupe (projet) actif par defaut
27                #   idrproj -d newproj   redefinit "newproj" en tant que  projet actif,
28                #        alors $STORE, $WORK etc vont designer les espaces de "newproj")
29                groupe=`idrproj | grep active | awk '{ print $1}'`
30                submit="sbatch -A ${groupe}@cpu "
31                run="srun --label -n "
32                # Espaces suivants definis par defaut en fonction du groupe actif,
33                #  par exemple : SCRATCHD=$SCRATCH is /gpfsstore/rech/$groupe/$login
34                #    * On peut aussi ne pas installer les scripts a la racine de STORE,
35                #        mais dans STORED=$STORE/your_folder
36                STORED=$STORE
37                SCRATCHD=$SCRATCH
38                LMDZD=$WORK
39                nb_mpi_max=2000
40                nb_omp_max=20
41                #LMDZ_Init sur le $STORE du $groupe
42                LMDZ_Init=$STORE/LMDZ_Init ;;
43        *) ARCH=
44                submit=". "
45                run="mpirun -np "
46                SCRATCHD=~/TMP/SCRATCH
47                STORED=~/TMP/
48                LMDZD=~/TMP
49                nb_mpi_max=2
50                nb_omp_max=2
51                LMDZ_Init=~/LMDZ/LMDZ_Init
52esac
53
54
55echo LMDZ_Init dans lmdz_env $LMDZ_Init
Note: See TracBrowser for help on using the repository browser.