#!/bin/tcsh # # Purpose # ------- # Runs the CSIRO Mk3L climate system model for one month, in stand-alone ocean # mode. # # Usage # ----- # ./test_oce # # History # ------- # 2006 May 16 Steven Phipps Original version # 2008 Feb 3 Steven Phipps Modified for the conversion of the ocean model # auxiliary files to netCDF # 2008 Mar 8 Steven Phipps Modified for the conversion of the ocean model # restart file to netCDF # 2008 Nov 10 Steven Phipps Added the line "limit stacksize unlimited" # Set the stacksize to unlimited limit stacksize unlimited # Create a run directory if it doesn't already exist, and delete the contents # of the directory if it does set RUN_DIR = ~/mk3l_tmp/ if (-e $RUN_DIR) /bin/rm $RUN_DIR/* if (! -e $RUN_DIR) mkdir $RUN_DIR # Copy the model executable to the run directory cp ../bin/model $RUN_DIR # Copy the control file to the run directory cp ../control/input_oce_sync_1mth $RUN_DIR/input # Copy the restart file to the run directory cp ../data/ocean/restart/orest.nc_sync $RUN_DIR/orest.nc # Copy the basic data files to the run directory cp ../data/ocean/basic/* $RUN_DIR # Copy the sea surface temperatures to the run directory cp ../data/ocean/sst/sst.nc_monthly $RUN_DIR/sst.nc # Copy the sea surface salinities to the run directory cp ../data/ocean/sss/sss.nc_monthly $RUN_DIR/sss.nc # Copy the wind stresses to the run directory cp ../data/ocean/stress/stress.nc_monthly $RUN_DIR/stress.nc # Change to the run directory cd $RUN_DIR # Run the model ./model < input | tee output