Hi all,
I am having an issue with the shortwave diagnostic output when running MOM5. I would like to save out the diagnostic:
sw_heat
This is a standard diagnostic that looks fine when running the ACCESS model. The problem is that in my GFDL CM2.1 simulations, I am using the namelist option:
use_shortwave_gfdl=.true.
use_shortwave_csiro=.false.
When I use the GFDL shortwave module, sw_heat
diagnostic returns only zeros.
If I switch my GFDL simulation over to using the CSIRO shortwave module, then I get sensible looking output, like in the ACCESS model. The problem with doing that is that it makes a physical change to simulations that have been equilibrated for 5000 years already… hence I don’t want to just re-run the model with a different shortwave scheme.
The thing I am seeking help on:
If I look at lines 346 of the ocean_shortwave.F90 file
call diagnose_3d(Time, Grd, id_sw_heat, Temp%wrk1(:,:,:))
This diagnostic call is written in a way that should not matter whether I am using the GFDL or the CSIRO shortwave modules. The modules themselves are called on Lines 294-297:
if(use_shortwave_gfdl) then
call sw_source_gfdl (Time, Thickness, T_diag(:), swflx, swflx_vis, index_irr, Temp, sw_frac_zt, opacity)
elseif(use_shortwave_csiro) then
call sw_source_csiro (Time, Thickness, T_diag(:), swflx, index_irr, Temp, sw_frac_zt)
Both should modify the Temp%wrk1(:,:,:)
field, hence the diagnostic should work either way. But it doesn’t!! It comes back with zeros when using the GFDL scheme.
Can anyone please help me figure out why this is happening?
Thanks,
Dave