#!/bin/tcsh # # Purpose # ------- # Runs the CSIRO Mk3L climate system model for one day, in coupled mode. # # Usage # ----- # ./test_cpl # # History # ------- # 2006 May 16 Steven Phipps Original version # 2007 Oct 24 Steven Phipps Updated for change to directory structure # 2008 Feb 5 Steven Phipps Modified for the conversion of the coupled # model auxiliary files to netCDF # 2008 Feb 6 Steven Phipps Modified for the conversion of the atmosphere # model auxiliary files to netCDF # 2008 Mar 8 Steven Phipps Modified for the conversion of the ocean model # and coupled model restart files to netCDF # 2008 Nov 10 Steven Phipps Added the line "limit stacksize unlimited" # 2008 Nov 22 Steven Phipps Added the line "setenv KMP_STACKSIZE 16M" # Set the stack sizes limit stacksize unlimited setenv KMP_STACKSIZE 16M # 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/ set RUN_DIR = ../../run2/ 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_cpl_1day $RUN_DIR/input # Copy the restart files to the run directory cp ../data/atmosphere/restart/rest.start_default $RUN_DIR/rest.start cp ../data/coupled/restart/oflux.nc_default $RUN_DIR/oflux.nc cp ../data/ocean/restart/orest.nc_sync $RUN_DIR/orest.nc # Copy the basic data files to the run directory cp ../data/atmosphere/basic/* $RUN_DIR cp ../data/ocean/basic/* $RUN_DIR # Copy the runoff relocation data to the run directory cp ../data/atmosphere/runoff/landrun21 $RUN_DIR # Copy the CO2 radiative data file for 280ppm to the run directory cp ../data/atmosphere/co2/co2_data.280ppm.18l $RUN_DIR/co2_data.18l # Copy the sea surface temperatures to the run directory (these are only used # for diagnostic purposes) cp ../data/atmosphere/sst/ssta.nc_default $RUN_DIR/ssta.nc # Copy the flux adjustments to the run directory cp ../data/coupled/flux_adjustments/hfcor.nc_default $RUN_DIR/hfcor.nc cp ../data/coupled/flux_adjustments/sfcor.nc_default $RUN_DIR/sfcor.nc cp ../data/coupled/flux_adjustments/txcor.nc_default $RUN_DIR/txcor.nc cp ../data/coupled/flux_adjustments/tycor.nc_default $RUN_DIR/tycor.nc cp ../data/coupled/flux_adjustments/sstcor.nc_default $RUN_DIR/sstcor.nc cp ../data/coupled/flux_adjustments/ssscor.nc_default $RUN_DIR/ssscor.nc cp ../data/coupled/flux_adjustments/dtm.nc_default $RUN_DIR/dtm.nc # Change to the run directory cd $RUN_DIR # Run the model ./model < input | tee output