Hi, I was wondering if somebody familiar with the CESM physics packages could give me some quick pointers here. For experiments I am performing, I would like to over-ride the surface latent flux parameterization in CAM and replace them with my own values. I have managed to modify my physpkg.F90 to read in a file. I then overwrite the model computed heat fluxes in one of the first lines of TPHYSAC.
Two questions.
1. Is the start of TPHYSAC an appropriate place to overwrite? I am fairly sure surface fluxes are computed by the model in seq_flux_atmocn_mct. In ccsm_comp_mod.F90, this is called before atm_run_mct, which in turn calls tphysac, the "after coupler" physics component. Therefore I believe this is a good place to do the overwriting. But should I do it before or after flux_avg_run?
2. More importantly, what is the proper value to be overwriting? I've been over-writing both LHFLX as well as QFLX via cam_in%cflx(1,1) and cam_in%lhf just to be safe. Why are there two fields? Presumably they are just off by a factor of L?
Two questions.
1. Is the start of TPHYSAC an appropriate place to overwrite? I am fairly sure surface fluxes are computed by the model in seq_flux_atmocn_mct. In ccsm_comp_mod.F90, this is called before atm_run_mct, which in turn calls tphysac, the "after coupler" physics component. Therefore I believe this is a good place to do the overwriting. But should I do it before or after flux_avg_run?
2. More importantly, what is the proper value to be overwriting? I've been over-writing both LHFLX as well as QFLX via cam_in%cflx(1,1) and cam_in%lhf just to be safe. Why are there two fields? Presumably they are just off by a factor of L?