Scheduled Downtime
On Tuesday 24 October 2023 @ 5pm MT the forums will be in read only mode in preparation for the downtime. On Wednesday 25 October 2023 @ 5am MT, this website will be down for maintenance and expected to return online later in the morning.
Normal Operations
The forums are back online with normal operations. If you notice any issues or errors related to the forums, please reach out to help@ucar.edu

CAM6 code structure documentation

NiCosentino

Nicolas Cosentino
New Member
I am looking for documentation on the general code structure for CAM. Ideally a schematic showing main modules and how they interconnect. Could not find it in the scientific guide (CAM5 Scientific Guide — camdoc documentation). I need some understanding of the general code and this would help. Thanks in advance for any help with this!
 

peverley

Courtney Peverley
Moderator
Staff member
Hi Nicolas,

Beyond the scientific guide and user's guide, we don't have much documentation for the actual code. If you tell me which version of CAM you are working with, I can give you at least a place to start.
 

peverley

Courtney Peverley
Moderator
Staff member
Great.

I recommend starting here: $CAM/src/control/cam_comp.F90.

In here, you can see the run sequence (e.g. when the physics and dycore run). From here, you can work your way down to more granular modules based on what you're interested in by searching for modules (in $CAM/src/) that contain the subroutines you'd like to look at.

Hope that helps!
Courtney
 
Top