source: LMDZ6/trunk/tools/make_sso/compile @ 5150

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