Last change
on this file since 2338 was
2256,
checked in by emillour, 5 years ago
|
Common dynamics:
Add scripts and arch files to use the GCM with the PGI compiler on the Jean-Zay supercomputer.
EM
|
-
Property svn:executable set to
*
|
File size:
1.2 KB
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | # script to download and install the latest version of IOIPSL on occigen |
---|
3 | # |
---|
4 | |
---|
5 | #0. Preliminary stuff |
---|
6 | source ../arch/arch-X64_JEANZAY-pgi.env |
---|
7 | module load subversion |
---|
8 | |
---|
9 | |
---|
10 | whereami=`pwd -P` |
---|
11 | |
---|
12 | # 1. Get IOIPSL (via modipsl) |
---|
13 | svn co http://forge.ipsl.jussieu.fr/igcmg/svn/modipsl/trunk modipsl |
---|
14 | cd modipsl/util |
---|
15 | |
---|
16 | ./model IOIPSL_PLUS |
---|
17 | |
---|
18 | # 2. Set correct settings: |
---|
19 | # set default working precision for IOIPSL: |
---|
20 | sed -i -e s:"jeanzay F_C = mpiifort -c -cpp":"jeanzay F_C = mpif90 -c -Mpreprocess":1 \ |
---|
21 | -e s/'jeanzay F_O = -DCPP_PARA -O3 $(F_D) $(F_P) -I$(MODDIR) -module $(MODDIR) -fp-model precise'/'jeanzay F_O = -DCPP_PARA -fast -O3 -Munroll=c:4 $(F_D) $(F_P) -I$(MODDIR) -module $(MODDIR)'/1 \ |
---|
22 | -e s:'jeanzay NCDF_INC = ./':"jeanzay NCDF_INC = $(nf-config --includedir)":1 \ |
---|
23 | -e s:'jeanzay NCDF_LIB = -lnetcdff':"jeanzay NCDF_LIB = $(nf-config --flibs)":1 \ |
---|
24 | -e s:"jeanzay F_L = mpiifort":"jeanzay F_L = mpif90":1 AA_make.gdef |
---|
25 | |
---|
26 | ./ins_make -t jeanzay -p I4R8 |
---|
27 | |
---|
28 | ## 3. build ioipsl: |
---|
29 | cd ../modeles/IOIPSL/src |
---|
30 | gmake |
---|
31 | ## Compile the rebuild tool: |
---|
32 | cd ../tools |
---|
33 | gmake |
---|
34 | |
---|
35 | if [[ -f ${whereami}/modipsl/lib/libioipsl.a ]] |
---|
36 | then |
---|
37 | echo "OK: ioipsl library is in ${whereami}/modipsl/lib" |
---|
38 | else |
---|
39 | echo "Something went wrong..." |
---|
40 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.