#!/bin/csh
# need to use single thread
foreach component ( ATM LND ICE OCN CPL GLC ROF WAV )
 ./xmlchange NTASKS_$component=1
 ./xmlchange NTHRDS_$component=1
 ./xmlchange ROOTPE_$component=0
end
# Restart capability is not currently supported for SCM
./xmlchange REST_OPTION=never
# Modify some parameters for CICE to make it SCM compatible
./xmlchange CICE_AUTO_DECOMP=FALSE
./xmlchange CICE_DECOMPTYPE=blkrobin
./xmlchange CICE_BLCKX=1
./xmlchange CICE_BLCKY=1
./xmlchange CICE_MXBLCKS=1
./xmlchange CICE_CONFIG_OPTS="-nodecomp -maxblocks 1 -nx 1 -ny 1"
# Disable the monthly cice file 
cat <<EOF >> user_nl_cice
  histfreq='y','x','x','x','x'
EOF
