-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdo_install_aocc.sh
More file actions
executable file
·60 lines (46 loc) · 1.36 KB
/
do_install_aocc.sh
File metadata and controls
executable file
·60 lines (46 loc) · 1.36 KB
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
55
56
57
58
59
60
# vim: sw=2
#!/bin/bash
# modules
if [ "1" ]; then
source artefacts/modules_aocc
fi
GERACLIS_ROOT=/project/project_462000470/socol/aocc
SOCOL_SRC=$GERACLIS_ROOT/SOCOLv4.0-testing
# YAXT_SRC="..."
# CDI_SRC=
# CDO_SRC=
# cleanup
# make cleans in SOCOL_SRC
SCRIPTDIR=$(pwd)
pushd $SOCOL_SRC && ls
# squeaky clean
if [ "1" ]; then
cd $SOCOL_SRC && make clean
cd $SOCOL_SRC/src/oasis3mct && make clean
cd $SOCOL_SRC/src/oasis3mct && make clean
cd $SOCOL_SRC/src/oasis3mct/libpsmile && make clean
cd $SOCOL_SRC/src/oasis3mct/mct && make clean
fi
popd
# Copy modified configs
if test -f "$SOCOL_SRC/configure_socol_lumi_aocc"; then
echo "\n********************************************************\n"
echo "$SOCOL_SRC/configure_socol_lumi_aocc exists, overwrite? (y/N)"
read yesNO
if [ "${yesNO}" = "y" ]; then
cp artefacts/configure_socol_lumi_aocc $SOCOL_SRC/
fi
else
cp artefacts/configure_socol_lumi_aocc $SOCOL_SRC/
fi
echo "Copying configure.ac $SOCOL_SRC/src/oasis3mct/configure.ac"
cp artefacts/configure.ac $SOCOL_SRC/src/oasis3mct/configure.ac
pushd $SOCOL_SRC/src/oasis3mct/ && autoconf
popd
# Configure SOCOL
pushd $SOCOL_SRC && GERACLIS_ROOT=$GERACLIS_ROOT ./configure_socol_lumi_aocc --oasis --echam --mpiom --prefix=$SOCOL_SRC
# Make oasis
cd $SOCOL_SRC/src/oasis3mct && make -j2 install
# Make SOCOL
cd $SOCOL_SRC && make -j12 install
popd