source: LMDZ6/branches/Ocean_skin/tools/make_sso/compile @ 5195

Last change on this file since 5195 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 
1source make_sso.env
2
3
4if [ ! -f Relief.nc ]; then
5echo Attention missing Relief.nc file
6echo I download it
7wget --no-check-certificate -nv https://web.lmd.jussieu.fr/~lmdz/pub/3DInputData/Limit/Relief.nc
8fi
9
10if [ ! -d SPHEREPACK ]; then
11echo Missing SPHEREPACK library. I download it
12wget --no-check-certificate -nv https://web.lmd.jussieu.fr/~lmdz/pub/import/spherepack3.2.tgz
13tar -xvf spherepack3.2.tgz
14mv spherepack3.2 SPHEREPACK
15mv SPHEREPACK/make.inc SPHEREPACK/make.inc.old
16
17# copy more adequate make.inc to SPHEREPACK
18mv make.inc SPHEREPACK/.
19# copy corrected Makefile to SPHEREPACK/test
20mv SPHEREPACK/test/Makefile SPHEREPACK/test/Makefile.old
21mv  Makefile.test SPHEREPACK/test/Makefile
22# clean up
23rm spherepack3.2.tgz
24fi
25
26
27
28if [ ! -f SPHEREPACK/lib/libspherepack.a ]; then
29  cd SPHEREPACK ; gmake ; cd -
30fi
31SRC="make_sso_SpherePack.f90"
32mode=prod
33
34case $mode in
35  prod) OPTS="-O3" ;;
36  debug) OPTS="-check all -g" ;;
37esac
38
39ifort -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.