ckuo@lbl_gov
Member
Hello,In validating variables passed between CLM and CAM (RRTMG to be specific), I am outputting the fields using user_nl_clm and user_nl_cam, then plotting the differences, which unfortunately, are not zero. In particular, take LWup from CLM, for example. The only changes I made are the following additions to radiation.F90, as outlined by executing "%git diff atm/cam/src/physics/rrtmg/radiation.F90". Added lines are notated by the "+" symbol.----------------------------------------------------------diff --git a/atm/cam/src/physics/rrtmg/radiation.F90 b/atm/cam/src/physics/rrtmg/radiation.F90--- a/atm/cam/src/physics/rrtmg/radiation.F90+++ b/atm/cam/src/physics/rrtmg/radiation.F90@@ -491,6 +491,10 @@ end function radiation_nextsw_cday call addfld('FULC'//diag(icall), 'W/m2', pverp,'I', 'Longwave clear-sky upward flux', phys_decomp) call addfld('FDLC'//diag(icall), 'W/m2', pverp,'I', 'Longwave clear-sky downward flux', phys_decomp)+ call addfld('LWUPclm'//diag(icall), 'W/m2', 1,'A', 'Longwave upward flux from CLM', phys_decomp, &+ sampling_seq='rad_lwsw') if (history_amwg) then call add_default('QRL'//diag(icall), 1, ' ') call add_default('FLNS'//diag(icall), 1, ' ')@@ -1114,6 +1118,8 @@ end function radiation_nextsw_cday if (active_calls(icall)) then+ call outfld('LWUPclm'//diag(icall),cam_in%lwup,pcols,lchnk) ! update the conctrations in the RRTMG state object call rrtmg_state_update( state, pbuf, icall, r_state)------------------------------------------------------------------------in user_nl_clm, the following lines are added, as 'LWup' is already a history field:hist_avgflag_pertape='A','A'hist_fincl2 = 'LWup'hist_mfilt = 1,720hist_nhtfrq = 0,1------------------------------------------------------------------------In user_nl_cam, the following lines are added, given the changes to radiation.F90:avgflag_pertape='A','A'fincl2 = 'LWUPclm'mfilt = 1,720nhtfrq = 0,1 -----------------------------------------------------------------------------Attached are figures of the maps of the differences in the LWup. The differences are not zero everywhere.
CESM1.2.2, compset=B1850C5CN, res=T31_g37, mach=corip1How can I determine the correct domain indices to use for outputting these variables so that they match exactly (differences=0?). Thank you,Kuo
CESM1.2.2, compset=B1850C5CN, res=T31_g37, mach=corip1How can I determine the correct domain indices to use for outputting these variables so that they match exactly (differences=0?). Thank you,Kuo