Subversion Repositories lagranto.ecmwf

Rev

Rev 3 | Rev 9 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3 Rev 5
Line 20... Line 20...
20
# Init Fortran compiler and set netCDF acccordingly
20
# Init Fortran compiler and set netCDF acccordingly
21
setenv FORTRAN pgf90 
21
setenv FORTRAN pgf90 
22
 
22
 
23
# Init netCDF library depending on the Fortran compiler
23
# Init netCDF library depending on the Fortran compiler
24
if ( "${FORTRAN}" == "pgf90" ) then
24
if ( "${FORTRAN}" == "pgf90" ) then
25
  module load pgi/9.0-1
25
  module load netcdf/4.2.1-pgf90
26
  module load netcdf/4.1.1-pgf90
26
  module list
27
 
27
 
28
else if ( "${FORTRAN}" == "gfortran" ) then
28
else if ( "${FORTRAN}" == "gfortran" ) then
29
  module load gfortran
29
  module load gfortran
30
  module load netcdf/4.1.1
30
  module load netcdf/4.1.1
31
 
31
 
Line 45... Line 45...
45
 
45
 
46
# Set LAGRANTO environment variable
46
# Set LAGRANTO environment variable
47
setenv LAGRANTO ${path_devel}
47
setenv LAGRANTO ${path_devel}
48
 
48
 
49
# Set netCDF paths
49
# Set netCDF paths
50
setenv NETCDF_LIB ${NETCDF}/lib/ 
50
setenv NETCDF_LIB `nc-config --flibs`
51
setenv NETCDF_INC ${NETCDF}/include/
51
setenv NETCDF_INC `nc-config --fflags`
52
 
52
 
53
# Set list of core programs
53
# Set list of core programs
54
set core  = "create_startf caltra trace select density lidar"
54
set core  = "create_startf caltra trace select density lidar"
55
 
55
 
56
# Set list of goodies
56
# Set list of goodies
Line 185... Line 185...
185
foreach lib ( $libs )
185
foreach lib ( $libs )
186
 
186
 
187
\rm -f ${lib}.a
187
\rm -f ${lib}.a
188
\rm -f ${lib}.o
188
\rm -f ${lib}.o
189
echo ${FORTRAN} -c -O ${lib}.f
189
echo ${FORTRAN} -c -O ${lib}.f
190
${FORTRAN} -c -O -I ${NETCDF_INC} ${lib}.f
190
${FORTRAN} -c -O ${NETCDF_INC} ${lib}.f
191
ar r ${lib}.a ${lib}.o
191
ar r ${lib}.a ${lib}.o
192
\rm -f ${lib}.l ${lib}.o
192
\rm -f ${lib}.l ${lib}.o
193
ranlib ${lib}.a
193
ranlib ${lib}.a
194
if ( ! -f ${lib}.a ) then
194
if ( ! -f ${lib}.a ) then
195
  echo "Problem in compiling ${lib} ... Stop"
195
  echo "Problem in compiling ${lib} ... Stop"
Line 375... Line 375...
375
ln -svf ${LAGRANTO}/bin/lagrantohelp        lagrantohelp.ecmwf
375
ln -svf ${LAGRANTO}/bin/lagrantohelp        lagrantohelp.ecmwf
376
 
376
 
377
ln -svf ${LAGRANTO}/caltra/caltra.sh        caltra.sh
377
ln -svf ${LAGRANTO}/caltra/caltra.sh        caltra.sh
378
ln -svf ${LAGRANTO}/startf/create_startf.sh create_startf.sh
378
ln -svf ${LAGRANTO}/startf/create_startf.sh create_startf.sh
379
ln -svf ${LAGRANTO}/select/select.sh        select.sh
379
ln -svf ${LAGRANTO}/select/select.sh        select.sh
-
 
380
ln -svf ${LAGRANTO}/select/select.sh        seltra.sh
380
ln -svf ${LAGRANTO}/trace/trace.sh          trace.sh
381
ln -svf ${LAGRANTO}/trace/trace.sh          trace.sh
381
ln -svf ${LAGRANTO}/density/density.sh      density.sh
382
ln -svf ${LAGRANTO}/density/density.sh      density.sh
382
ln -svf ${LAGRANTO}/startf/create_startf.sh startf.sh
383
ln -svf ${LAGRANTO}/startf/create_startf.sh startf.sh
383
ln -svf ${LAGRANTO}/lidar/lidar.sh          lidar.sh
384
ln -svf ${LAGRANTO}/lidar/lidar.sh          lidar.sh
384
 
385
 
385
ln -svf ${LAGRANTO}/caltra/caltra.sh        caltra.ecmwf
386
ln -svf ${LAGRANTO}/caltra/caltra.sh        caltra.ecmwf
386
ln -svf ${LAGRANTO}/startf/create_startf.sh create_startf.ecmwf
387
ln -svf ${LAGRANTO}/startf/create_startf.sh create_startf.ecmwf
387
ln -svf ${LAGRANTO}/select/select.sh        select.ecmwf
388
ln -svf ${LAGRANTO}/select/select.sh        select.ecmwf
-
 
389
ln -svf ${LAGRANTO}/select/select.sh        seltra.ecmwf
388
ln -svf ${LAGRANTO}/trace/trace.sh          trace.ecmwf
390
ln -svf ${LAGRANTO}/trace/trace.sh          trace.ecmwf
389
ln -svf ${LAGRANTO}/density/density.sh      density.ecmwf
391
ln -svf ${LAGRANTO}/density/density.sh      density.ecmwf
390
ln -svf ${LAGRANTO}/startf/create_startf.sh startf.ecmwf
392
ln -svf ${LAGRANTO}/startf/create_startf.sh startf.ecmwf
391
ln -svf ${LAGRANTO}/lidar/lidar.sh          lidar.ecmwf
393
ln -svf ${LAGRANTO}/lidar/lidar.sh          lidar.ecmwf
392
 
394
 
393
ln -svf ${LAGRANTO}/caltra/caltra.sh        caltra
395
ln -svf ${LAGRANTO}/caltra/caltra.sh        caltra
394
ln -svf ${LAGRANTO}/startf/create_startf.sh create_startf
396
ln -svf ${LAGRANTO}/startf/create_startf.sh create_startf
395
ln -svf ${LAGRANTO}/select/select.sh        select
397
ln -svf ${LAGRANTO}/select/select.sh        select
-
 
398
ln -svf ${LAGRANTO}/select/select.sh        seltra
396
ln -svf ${LAGRANTO}/trace/trace.sh          trace
399
ln -svf ${LAGRANTO}/trace/trace.sh          trace
397
ln -svf ${LAGRANTO}/density/density.sh      density
400
ln -svf ${LAGRANTO}/density/density.sh      density
398
ln -svf ${LAGRANTO}/startf/create_startf.sh startf
401
ln -svf ${LAGRANTO}/startf/create_startf.sh startf
399
ln -svf ${LAGRANTO}/lidar/lidar.sh          lidar
402
ln -svf ${LAGRANTO}/lidar/lidar.sh          lidar
400
 
403