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

How does coupler works in CESM2 (CAM)?

FuchengY

Fucheng Yang
New Member
What version of the code are you using?
CESM2.2.2 on Derecho


Have you made any changes to files in the source tree?
Yes. I revised physpkg.F90 to output climate before and after coupling within one model step.


Describe every step you took leading up to the problem:
I am running an AMIP-type simulation.
I revised physpkg.F90 by adding lines like:
call outfld('T_bCP',state%t,pcols,lchnk)
at the end of subroutine tphysbc, and:
call outfld('T_aCP',state%t,pcols,lchnk)
near the begining of subroutine tphysac.


Describe your problem or question:
Hello,

I want to see how temperature (and other variables) changes due to coupling so I output the climate before and after coupling in the sequence of integration. However, the temperature (the lowest level in sigma-p coordinate) seems identical (the difference is exactly 0 in MATLAB) in two outputs, suggesting that coupling does not change temperature. It is quite odd. I also tested other processes, such as convection scheme, and I can see tempeature changing before and after those processes.

Do I misunderstand the coupling in CESM? Could anyone help me? I have attached the revised file.
 

FuchengY

Fucheng Yang
New Member
What version of the code are you using?
CESM2.2.2 on Derecho


Have you made any changes to files in the source tree?
Yes. I revised physpkg.F90 to output climate before and after coupling within one model step.


Describe every step you took leading up to the problem:
I am running an AMIP-type simulation.
I revised physpkg.F90 by adding lines like:
call outfld('T_bCP',state%t,pcols,lchnk)
at the end of subroutine tphysbc, and:
call outfld('T_aCP',state%t,pcols,lchnk)
near the begining of subroutine tphysac.


Describe your problem or question:
Hello,

I want to see how temperature (and other variables) changes due to coupling so I output the climate before and after coupling in the sequence of integration. However, the temperature (the lowest level in sigma-p coordinate) seems identical (the difference is exactly 0 in MATLAB) in two outputs, suggesting that coupling does not change temperature. It is quite odd. I also tested other processes, such as convection scheme, and I can see tempeature changing before and after those processes.

Do I misunderstand the coupling in CESM? Could anyone help me? I have attached the revised file.
In my understanding, the dynamic core, moist processes (including convection and stratiform), radiation, coupling, other processes (including vertical diffusion and gravity wave drag) are conducted one by one in one model step.
 
Vote Upvote 0 Downvote

FuchengY

Fucheng Yang
New Member
After reading more codes, I think I understand how coupler works. The coupling only updates variables at surface, which will be used as boundary condition in dynamic core. The atmopshere does not change due to coupling.
 
Vote Upvote 0 Downvote
Top