#!/bin/tcsh # # Purpose # ------- # Runs the CSIRO Mk3L climate system model for one day, in stand-alone # atmosphere mode. # # Usage # ----- # ./test_atm # # History # ------- # 2006 May 16 Steven Phipps Original version # 2008 Feb 6 Steven Phipps Modified for the conversion of the atmosphere # model auxiliary files to netCDF # 2008 Nov 21 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/ 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_atm_1day $RUN_DIR/input # Copy the restart file to the run directory cp ../data/atmosphere/restart/rest.start_default $RUN_DIR/rest.start # Copy the basic data files to the run directory cp ../data/atmosphere/basic/* $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 cp ../data/atmosphere/sst/ssta.nc_default $RUN_DIR/ssta.nc # Copy the ocean currents to the run directory cp ../data/atmosphere/currents/ocuv.nc_default $RUN_DIR/ocuv.nc # Change to the run directory cd $RUN_DIR # Run the model ./model < input | tee output