Notes on Running CAM/CESM with COSP on Yellowstone

NCAR's CFMIP/COSP contact: Jen Kay (jenkay at ucar dot edu)
website last updated 8-27-2014

1) RECOMMENDED PE LAYOUTS FROM JIM EDWARDS FOR RUNNING WITH cosp_amwg=.true.

a) coupled run (B case):
./xmlchange -file env_mach_pes.xml -id ROOTPE_CPL -val "0"
./xmlchange -file env_mach_pes.xml -id ROOTPE_GLC -val "0"
./xmlchange -file env_mach_pes.xml -id ROOTPE_LND -val "0"
./xmlchange -file env_mach_pes.xml -id ROOTPE_ROF -val "0"
./xmlchange -file env_mach_pes.xml -id ROOTPE_ICE -val "336"
./xmlchange -file env_mach_pes.xml -id ROOTPE_ATM -val "0"
./xmlchange -file env_mach_pes.xml -id ROOTPE_OCN -val "976"
./xmlchange -file env_mach_pes.xml -id NTASKS_CPL -val "976"
./xmlchange -file env_mach_pes.xml -id NTASKS_GLC -val "1"
./xmlchange -file env_mach_pes.xml -id NTASKS_LND -val "336"
./xmlchange -file env_mach_pes.xml -id NTASKS_ROF -val "336"
./xmlchange -file env_mach_pes.xml -id NTASKS_ICE -val "640"
./xmlchange -file env_mach_pes.xml -id NTASKS_ATM -val "976"
./xmlchange -file env_mach_pes.xml -id NTASKS_OCN -val "48"

With optimization 12.06 simulated years / cmp-day. Before, 12.3 simulated years / cmp-day.

b) AMIP run (F case):
./xmlchange -file env_mach_pes.xml -id NTASKS_CPL -val "1024"
./xmlchange -file env_mach_pes.xml -id NTASKS_GLC -val "1024"
./xmlchange -file env_mach_pes.xml -id NTASKS_LND -val "1024"
./xmlchange -file env_mach_pes.xml -id NTASKS_ROF -val "1024"
./xmlchange -file env_mach_pes.xml -id NTASKS_ICE -val "1024"
./xmlchange -file env_mach_pes.xml -id NTASKS_ATM -val "1024"
./xmlchange -file env_mach_pes.xml -id NTASKS_OCN -val "1024"

With optimization 12.6 simulated years/cmp-day. Before, 2.4 simulated years / cmp-day.

For an existing run. Edit the env_mach_pes.xml file to make the changes above. Once you've changed this you need to:
1) rebuild the run scripts.
cesm_setup -clean
cesm_setup
2) rebuild the case.
*.clean_build
*.build

2) CRASH: When running fully coupled with COSP, CESM crashes the first time radiation/COSP is called.
Change the following in env_mach_specific to avoid this crash (fix from Chris Fischer). Note: THIS HAS BEEN FIXED.

3) FIX FOR COMPILER
There is a fix in "Macros" in the case directory. You'll need to replace "FIXEDFLAGS:= -132" with "FIXEDFLAGS:= -fixed -132". Note: THIS HAS BEEN FIXED.