#!/bin/bash
#

i=${1:-2022}
dim=96x72x151
# dim=32x24x27

cp start$i.nc start.nc
cp startfi$i.nc startfi.nc
rm start_archive.nc
cp run.def_ini run.def
start2archive_${dim}_phypluto_b17x23_seq.e
if [ $? != 0 ]; then echo "start2archive failed"; exit 1; fi
cp run.def_new_hybrid run.def
newstart_${dim}_phypluto_b17x23_seq.e < ./newstart.def
if [ $? != 0 ]; then echo "newstart failed"; exit 1; fi
cp restart.nc start.nc
cp restartfi.nc startfi.nc
