#! /bin/sh
#89.4283
#178.8566

name='OC391_FC3'
mesh='MESH/stw2'
cstart='08 05 2004 0.0'
finish='20 05 2004 0.0'
dt='178.8566'
mkdir $name

echo '{Comment:}' > tmp
echo 'First forward solution' >> tmp
echo '{Case name:}' >> tmp
echo $mesh >> tmp
echo '{Coordinates: CARTESIAN/SPHERICAL}' >> tmp
echo 'CARTESIAN' >> tmp
echo '{Boundary element incidence list:}' >> tmp
echo $mesh'.vn.bel' >> tmp
echo '{Initial condition file:}' >> tmp
echo 'COLD-START '$cstart >> tmp
echo '{Echo file:}' >> tmp
echo 'CRUISE_Q5.1/CRUISE_Q5.1.echo' >> tmp
echo '{Simulation parameters:}' >> tmp
echo 'SI UNITS          [units]' >> tmp
echo '1.00  1.00  1.00  [x, y, and z scaling factor]' >> tmp
echo '43.500            [degree latitude]' >> tmp
echo '10.0              [minimum depth]' >> tmp
echo $finish           '[end date (d m y) and time (sec) of simulation]' >> tmp
echo '178.8566          [time step (seconds)]' >> tmp
echo '21                [number of vertical nodes]' >> tmp

mv tmp $name/$name.CRUISE_Q5.1.inq

echo '{Comment:}' > tmp
echo 'Second forward solution' >> tmp
echo '{Case name:}' >> tmp
echo $mesh >> tmp
echo '{Coordinates: CARTESIAN/SPHERICAL}' >> tmp
echo 'CARTESIAN' >> tmp
echo '{Boundary element incidence list:}' >> tmp
echo $mesh'.vn.bel' >> tmp
echo '{Initial condition file:}' >> tmp
echo 'CRUISE_Q5.1/HOT-START.icq5' >> tmp
echo '{Echo file:}' >> tmp
echo 'CRUISE_Q5.2/CRUISE_Q5.2.echo' >> tmp
echo '{Simulation parameters:}' >> tmp
echo 'SI UNITS          [units]' >> tmp
echo '1.00  1.00  1.00  [x, y, and z scaling factor]' >> tmp
echo '43.500            [degree latitude]' >> tmp
echo '10.0              [minimum depth]' >> tmp
echo $finish           '[end date (d m y) and time (sec) of simulation]' >> tmp
echo '178.8566          [time step (seconds)]' >> tmp
echo '21                [number of vertical nodes]' >> tmp

mv tmp $name/$name.CRUISE_Q5.2.inq

echo '{Comment:}' > tmp
echo 'Third forward solution' >> tmp
echo '{Case name:}' >> tmp
echo $mesh >> tmp
echo '{Coordinates: CARTESIAN/SPHERICAL}' >> tmp
echo 'CARTESIAN' >> tmp
echo '{Boundary element incidence list:}' >> tmp
echo $mesh'.vn.bel' >> tmp
echo '{Initial condition file:}' >> tmp
echo 'CRUISE_Q5.1/HOT-START.icq5' >> tmp
echo '{Echo file:}' >> tmp
echo 'CRUISE_Q5.3/CRUISE_Q5.3.echo' >> tmp
echo '{Simulation parameters:}' >> tmp
echo 'SI UNITS          [units]' >> tmp
echo '1.00  1.00  1.00  [x, y, and z scaling factor]' >> tmp
echo '43.500            [degree latitude]' >> tmp
echo '10.0              [minimum depth]' >> tmp
echo $finish           '[end date (d m y) and time (sec) of simulation]' >> tmp
echo '178.8566          [time step (seconds)]' >> tmp
echo '21                [number of vertical nodes]' >> tmp

mv tmp $name/$name.CRUISE_Q5.3.inq

echo '{Comment:}' > tmp
echo 'First inverse of TRUXTON6' >> tmp
echo '{Case name:}' >> tmp
echo $mesh >> tmp
echo '{Coordinates: CARTESIAN/SPHERICAL}' >> tmp
echo 'CARTESIAN' >> tmp
echo '{Boundary element incidence list:}' >> tmp
echo $mesh'.lnd.bel' >> tmp
echo '{Initial condition file:}' >> tmp
echo 'COLD-START 01 01 1995 0.0' >> tmp
echo '{Echo file:}' >> tmp
echo 'CRUISE_T6.ALL/CRUISE_T6.1.echo' >> tmp
echo '{Simulation parameters:}' >> tmp
echo 'SI UNITS          [units]' >> tmp
echo '1.00  1.00  1.00  [x, y, and z scaling factor]' >> tmp
echo '43.500            [degree latitude]' >> tmp
echo '10.0              [minimum depth]' >> tmp
echo '01 01 1995 0.0    [end date (d m y) and time (sec) of simulation]' >> tmp
echo '178.8566             [time step (seconds)]' >> tmp
echo '21                [number of vertical nodes]' >> tmp

mv tmp $name/$name.CRUISE_T6.1.inq

echo '{Comment:}' > tmp
echo 'Second inverse of TRUXTON6' >> tmp
echo '{Case name:}' >> tmp
echo $mesh >> tmp
echo '{Coordinates: CARTESIAN/SPHERICAL}' >> tmp
echo 'CARTESIAN' >> tmp
echo '{Boundary element incidence list:}' >> tmp
echo $mesh'.lnd.bel' >> tmp
echo '{Initial condition file:}' >> tmp
echo 'COLD-START 01 01 1995 0.0' >> tmp
echo '{Echo file:}' >> tmp
echo 'CRUISE_T6.ALL/CRUISE_T6.2.echo' >> tmp
echo '{Simulation parameters:}' >> tmp
echo 'SI UNITS          [units]' >> tmp
echo '1.00  1.00  1.00  [x, y, and z scaling factor]' >> tmp
echo '43.500            [degree latitude]' >> tmp
echo '10.0              [minimum depth]' >> tmp
echo '01 01 1995 0.0    [end date (d m y) and time (sec) of simulation]' >> tmp
echo '178.8566          [time step (seconds)]' >> tmp
echo '21                [number of vertical nodes]' >> tmp

mv tmp $name/$name.CRUISE_T6.2.inq
