#! /bin/csh -f 

source $CASEROOT/env_conf || exit -1
source $CASEROOT/env_run  || exit -1
source $CASEROOT/env_mach.$MACH  || exit -1
source /spin/home/hof/CCSM/ccsm3_1_bgcmip01/scripts/i01.03cn/env_pes.phoenix || exit -1 

 #******************************************************************#
 # If the user changes any input datasets - be sure to give it a    #
 # unique filename. Do not duplicate any existing input files       #
 #******************************************************************#

if !($NTASKS_OCN > 0) then
  echo "NTASKS_OCN must be > 0, please correct in env_pes and reconfigure"
  exit -1
endif
if !($NTHRDS_OCN == 1) then
  echo "NTHRDS_OCN must be 1, please correct in env_pes and reconfigure"
  exit -1
endif

cat >! ocn.stdin << EOF
ocn                  !  myModelName (must match one in cpl_fields_mod)
320                  !  i-direction global dimension
384                  !  j-direction global dimension
2                    !  decomp_type  1=1d-in-i, 2=1d-in-j, 3=2d, 4=segmented
0                    !  num of pes for i (type 3 only)
0                    !  length of segments (type 4 only)
1                    !  ncpl  number of communications w/coupler per day
0.0                  !  simul time proxy (secs): time between cpl comms
EOF

