#!/bin/bash

#DEF_DIR=/san/home/rdword/gcm/spinups
DEF_DIR=/u/rwlmd/spinups/

#makegcm -d 32x24x20 -b 32x36 -t 2 -p std gcm
#makegcm -d 32x24x20 -b 32x36 -t 2 -p std newstart

newstart.e < start_earth
startrestart

echo "Starting short GCM spinup run #1..."
cp -f $DEF_DIR/run1.def run.def
gcm.e > lruns1
startrestart

echo "Starting short GCM spinup run #2..."
cp -f $DEF_DIR/run2.def run.def
gcm.e > lruns2
startrestart

echo "Finishing GCM spinup year..."
cp -f $DEF_DIR/run_1styr_earth.def run.def
gcm.e > lrun0
startrestart0

exit 0

# run for many years to reach equilibrium
#cp -f run_1yr_earth.def run.def
#rm -f num_run
#run0

# start the final 1-yr run with intensive OLR save
#cp -f run_1yr_earth_OLR.def run.def
#run_OLR
