Last change
on this file since 4729 was
4168,
checked in by evignon, 3 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
|
Rev | Line | |
---|
[4168] | 1 | source make_sso.env |
---|
[4167] | 2 | |
---|
[4168] | 3 | |
---|
[4167] | 4 | if [ ! -f Relief.nc ]; then |
---|
| 5 | echo Attention missing Relief.nc file |
---|
| 6 | echo I download it |
---|
[4168] | 7 | wget --no-check-certificate -nv https://web.lmd.jussieu.fr/~lmdz/pub/3DInputData/Limit/Relief.nc |
---|
[4167] | 8 | fi |
---|
| 9 | |
---|
| 10 | if [ ! -d SPHEREPACK ]; then |
---|
| 11 | echo Missing SPHEREPACK library. I download it |
---|
[4168] | 12 | wget --no-check-certificate -nv https://web.lmd.jussieu.fr/~lmdz/pub/import/spherepack3.2.tgz |
---|
[4167] | 13 | tar -xvf spherepack3.2.tgz |
---|
[4168] | 14 | mv spherepack3.2 SPHEREPACK |
---|
[4167] | 15 | mv SPHEREPACK/make.inc SPHEREPACK/make.inc.old |
---|
[4168] | 16 | |
---|
| 17 | # copy more adequate make.inc to SPHEREPACK |
---|
[4167] | 18 | mv make.inc SPHEREPACK/. |
---|
[4168] | 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 |
---|
[4167] | 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.