forked from NOC-MSM/SEAsia
-
Notifications
You must be signed in to change notification settings - Fork 2
/
make_tools.sh
54 lines (41 loc) · 1.4 KB
/
make_tools.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/bash
#:'
#
#***********************
#make_tools.sh
#***********************
#
# Ensure the correct modules are loaded for ARCHER2
# Load modules listed in /work/n01/shared/nemo/setup
# Tested 10Jan22
module swap craype-network-ofi craype-network-ucx
module swap cray-mpich cray-mpich-ucx
module load cray-hdf5-parallel/1.12.0.7
module load cray-netcdf-hdf5parallel/4.7.4.7
cd $NEMO
for ext_name in tools
do
ext=`svn propget svn:externals | grep $ext_name | cut -c2-`
echo $ext
svn co http://forge.ipsl.jussieu.fr/nemo/svn/$ext
done
# Make an adjustment to the DOMAINcfg source code to accomodate more varied vertical coords
cp $DOMAIN/domzgr.f90.melange $TDIR/DOMAINcfg/src/domzgr.f90
# Apply patches for the weight file code
cd $NEMO/tools/WEIGHTS/src
patch -b < $WDIR/BUILD_EXE/patch_files/scripinterp_mod.patch
patch -b < $WDIR/BUILD_EXE/patch_files/scripinterp.patch
patch -b < $WDIR/BUILD_EXE/patch_files/scrip.patch
patch -b < $WDIR/BUILD_EXE/patch_files/scripshape.patch
patch -b < $WDIR/BUILD_EXE/patch_files/scripgrid.patch
# compile tools
cd $NEMO/tools
./maketools -m archer2_cray -n NESTING
./maketools -m archer2_cray -n REBUILD_NEMO
./maketools -m archer2_cray -n WEIGHTS
./maketools -m archer2_cray -n DOMAINcfg
# Make SOSIE tool.
#$SCRIPTS/install_sosie.sh
# Install PyNEMO
#$SCRIPTS/install_pynemo.sh
cd $WDIR/SCRIPTS