Subversion Repositories lagranto.icon

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
3 michaesp 1
#!/bin/csh
2
 
3
# -----------------------------------------------------------------------------
4
# Set some parameters
5
# -----------------------------------------------------------------------------
6
 
7
# Set Lagranto 
8
set LAGRANTO = ${LAGRANTOBASE}.${MODEL}/
9
 
10
# Write usage information
11
if ( ${#argv} == 0 ) then
12
  echo 
13
  ${LAGRANTO}/bin/lagrantohelp mergetra short 
14
  echo  
15
  exit 0
16
endif
17
 
18
# Set input file
19
set inpfile1 = $1
20
set inpfile2 = $2
21
set outfile  = $3
22
 
23
# Set Fortran program
24
set prog=${LAGRANTO}/goodies/mergetra
25
 
26
# -----------------------------------------------------------------------------
27
# Run program 
28
# -----------------------------------------------------------------------------
29
 
30
set dims1=`${LAGRANTO}/goodies/trainfo.sh ${inpfile1} dim` 
31
set dims2=`${LAGRANTO}/goodies/trainfo.sh ${inpfile2} dim` 
32
 
33
\rm -f mergetra.param
34
echo \"${inpfile1}\" >! mergetra.param 
35
echo \"${inpfile2}\" >> mergetra.param
36
echo \"${outfile}\"  >> mergetra.param
37
echo ${dims1}        >> mergetra.param
38
echo ${dims2}        >> mergetra.param
39
 
40
${prog}
41
 
42
exit 0
43