Last change
on this file since 5286 was
4168,
checked in by evignon, 2 years ago
|
deuxieme phase de travail pour l'inclusion de make_sso
Ehouarn, David, Romain , Etienne
|
-
Property svn:executable set to
*
|
File size:
1.1 KB
|
Line | |
---|
1 | source make_sso.env |
---|
2 | |
---|
3 | |
---|
4 | if [ ! -f Relief.nc ]; then |
---|
5 | echo Attention missing Relief.nc file |
---|
6 | echo I download it |
---|
7 | wget --no-check-certificate -nv https://web.lmd.jussieu.fr/~lmdz/pub/3DInputData/Limit/Relief.nc |
---|
8 | fi |
---|
9 | |
---|
10 | if [ ! -d SPHEREPACK ]; then |
---|
11 | echo Missing SPHEREPACK library. I download it |
---|
12 | wget --no-check-certificate -nv https://web.lmd.jussieu.fr/~lmdz/pub/import/spherepack3.2.tgz |
---|
13 | tar -xvf spherepack3.2.tgz |
---|
14 | mv spherepack3.2 SPHEREPACK |
---|
15 | mv SPHEREPACK/make.inc SPHEREPACK/make.inc.old |
---|
16 | |
---|
17 | # copy more adequate make.inc to SPHEREPACK |
---|
18 | mv make.inc SPHEREPACK/. |
---|
19 | # copy corrected Makefile to SPHEREPACK/test |
---|
20 | mv SPHEREPACK/test/Makefile SPHEREPACK/test/Makefile.old |
---|
21 | mv Makefile.test SPHEREPACK/test/Makefile |
---|
22 | # clean up |
---|
23 | rm spherepack3.2.tgz |
---|
24 | fi |
---|
25 | |
---|
26 | |
---|
27 | |
---|
28 | if [ ! -f SPHEREPACK/lib/libspherepack.a ]; then |
---|
29 | cd SPHEREPACK ; gmake ; cd - |
---|
30 | fi |
---|
31 | SRC="make_sso_SpherePack.f90" |
---|
32 | mode=prod |
---|
33 | |
---|
34 | case $mode in |
---|
35 | prod) OPTS="-O3" ;; |
---|
36 | debug) OPTS="-check all -g" ;; |
---|
37 | esac |
---|
38 | |
---|
39 | ifort -assume realloc_lhs $OPTS -o make_sso.e make_sso_SpherePack.f90 -I$NETCDFFORTRAN_INCDIR $netcdf -L$NETCDFFORTRAN_LIBDIR -lnetcdff -lnetcdf -L./SPHEREPACK/lib -lspherepack -L$FFTW3_LIBDIR -lfftw3 |
---|
Note: See
TracBrowser
for help on using the repository browser.