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

The function of each source code in the root directory

Li1108

New Member
Hi,

I am trying to modify the moisture in the source code in CAM. I went into the directory of the source code of FV core ($CCSMROOT/models/atm/cam/src/dynamics/fv/) and I see so many Fortran codes (figure attached). I do not know which one is the main code. I have briefly scanned several codes but I do not find the variable "moisture". Can anyone tell me where the variable like specific humidity is first defined?src_code.PNG

Li
 

peverley

Courtney Peverley
Moderator
Staff member
Hi Li,

I would recommend looking at $CAM/src/physics/cam/nudging.F90 and seeing if nudging Q (specific humidity) will do what you want.

If not, could you provide more detail on what you're trying to do? Hopefully I can help more given more information.

Courtney
 

Li1108

New Member
Hi Li,

I would recommend looking at $CAM/src/physics/cam/nudging.F90 and seeing if nudging Q (specific humidity) will do what you want.

If not, could you provide more detail on what you're trying to do? Hopefully I can help more given more information.

Courtney
Hi Courtney,

Thanks for your reply! I entered the route you mentioned but I did not find the nudging.F90. The model I used is CESM1.2.1. What I want to do is to lock the radiation related to water vapor, so I need to find the variable "specific humidity" or "mixing ratio", and the place where the main code transmits the specifc humidity or mixing ratio to the radiation module. Can you give me some instructions on this? I have been looking for it for a long time but I still do not make it.

Best,
Li
 
Top