Subversion Repositories lagranto.ecmwf

Rev

Rev 19 | Rev 23 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 19 Rev 21
Line 18... Line 18...
18
 
18
 
19
# Set paths for development and for synchronisation (operational)
19
# Set paths for development and for synchronisation (operational)
20
set path_devel = "${DYN_TOOLS}//lagranto.ecmwf/"
20
set path_devel = "${DYN_TOOLS}//lagranto.ecmwf/"
21
set path_sync  = "${DYN_TOOLS}/lagranto/"
21
set path_sync  = "${DYN_TOOLS}/lagranto/"
22
 
22
 
23
# Init Fortran compiler and set netCDF acccordingly
23
# Set Fortran compiler
24
setenv FORTRAN  gfortran
24
setenv FORTRAN pgf90
-
 
25
 
-
 
26
# Set netcdf format (ive, ecmwf.cdf, ecmwf.cdo, mch) 
-
 
27
set ncdf = cdo
25
 
28
 
26
# Init netCDF library depending on the Fortran compiler
29
# Init netCDF library depending on the Fortran compiler
27
if ( "${FORTRAN}" == "pgf90" ) then
30
if ( "${FORTRAN}" == "pgf90" ) then
28
  module load netcdf/4.2.1-pgf90
31
  module load netcdf/4.2.1-pgf90
29
  module list
32
  module list
Line 70... Line 73...
70
 
73
 
71
# Set list of core programs
74
# Set list of core programs
72
set core  = "create_startf caltra trace select density lidar"
75
set core  = "create_startf caltra trace select density lidar"
73
 
76
 
74
# Set list of goodies
77
# Set list of goodies
75
set tools = "traj2num lsl2rdf changecst changet extract getmima gettidiff getvars list2lsl lsl2list mergetra newtime reformat timeres trainfo difference datelist tracal" 
78
set tools = "traj2num lsl2rdf changet extract getmima gettidiff getvars list2lsl lsl2list mergetra newtime reformat timeres trainfo difference datelist tracal" 
76
 
79
 
77
# Set list of libraries
80
# Set list of libraries
78
set libs  = "iotra ioinp inter times libcdfio libcdfplus"
81
set libs  = "iotra ioinp inter times libcdfio libcdfplus"
79
 
82
 
80
# Core programs
83
# Core programs
Line 156... Line 159...
156
# Install reference 
159
# Install reference 
157
# -----------------------------------------------------------------------------
160
# -----------------------------------------------------------------------------
158
 
161
 
159
if ( ("${mode}" == "docu") | ("${mode}" == "all" ) ) then
162
if ( ("${mode}" == "docu") | ("${mode}" == "all" ) ) then
160
    
163
 
161
echo "-----------------------------------------------------------------"
-
 
162
echo "Installing documentation"
164
echo "Installing documentation"
163
echo "-----------------------------------------------------------------"
165
echo "-----------------------------------------------------------------"
164
echo
166
echo
165
 
167
 
166
cd ${LAGRANTO}/docu/reference/
168
cd ${LAGRANTO}/docu/reference/
Line 198... Line 200...
198
echo
200
echo
199
 
201
 
200
# Change to library directory
202
# Change to library directory
201
cd ${LAGRANTO}/lib
203
cd ${LAGRANTO}/lib
202
 
204
 
-
 
205
# Set the correct netCDF interface
-
 
206
echo
-
 
207
if ( "${ncdf}" == "ive" ) then
-
 
208
   echo " ioinp_ive.f -> ioinp.f"
-
 
209
   \cp ioinp_ive.f ioinp.f
-
 
210
endif
-
 
211
if  ( "${ncdf}" == "nc" ) then
-
 
212
   echo " ioinp_cdf.f -> ioinp.f"
-
 
213
   \cp ioinp_nc.f ioinp.f
-
 
214
endif
-
 
215
if  ( "${ncdf}" == "cdo" ) then
-
 
216
   echo " ioinp_cdo.f -> ioinp.f"
-
 
217
   \cp ioinp_cdo.f ioinp.f
-
 
218
endif
-
 
219
if  ( "${ncdf}" == "mch" ) then
-
 
220
   echo " ioinp_mch.f -> ioinp.f"
-
 
221
   \cp ioinp_mch.f ioinp.f
-
 
222
endif
-
 
223
echo
-
 
224
 
203
# Loop over all libraries - compile and make library
225
# Loop over all libraries - compile and make library
204
foreach lib ( $libs )
226
foreach lib ( $libs )
205
 
227
 
206
\rm -f ${lib}.a
228
\rm -f ${lib}.a
207
\rm -f ${lib}.o
229
\rm -f ${lib}.o