UVIC_ESCM: Main Flow Chart
“Begin at the beginning,”, the King said, very gravely, “and go on till you come to the end: then stop”
Last week’s dump of the entire calling structure was an interesting exercise, but didn’t go very far in revealing the structure of UVic_ESCM. This week I focus on just the major components of the “main” routine. The graphic to the left is my first pass at a high-level summary.
Before continuing, you should be aware of ClimateSight Kate’s previous work, as a research student of Steve Easterbrook, which covers much of this ground already. In particular, this diagram of UVic_ESCM’s structure.
I want to dive deeper, though. The goal is to get into enough detail in the model to know how it’s put together and how to intelligently modify it.
The main routine is pretty straightforward.
1. Initialize Surface Boundary Condition (SBC) indices 2. Initialize tracers a. Ocean b. Atmosphere 3. Setup Ocean 4. Setup Atmosphere 5. Setup Land 6. Calculate time steps 7. Check consistency of SBC 8. Initial Global Sums 9. Main Loop a. atmos 1. gasbc 2. embm b. land 1. glsbc 2. mtlm c. ocean 1. gosbc 2. mom 3. embmout 4. mtlmout d. global sum 10 Final Global Sum