Conversation
This reverts commit fe9a724.
anton-seaice
left a comment
There was a problem hiding this comment.
I didn't go through everything, but in this section:
CDEPS/datm/datm_datamode_era5_mod.F90
Lines 278 to 375 in e0a43ca
we should modify it to only require the fields we actually need.
I think the fields we need are:
rainc, rainl, snowc, snowl, lwdn, swdn,swvdr, swvdf, swndr, swndf, slp_10, t_10, tdew, u_10 and v_10
and then allow these fields to not exist :
prsn, rain, lwnet, swnet, lat, taux, tauy, tskn,
|
|
||
| ! local variables | ||
| logical :: first_time = .true. | ||
| logical, save :: first_time = .true. |
There was a problem hiding this comment.
the save isn't required here, when a value is supplied in definitions then save is the default behaviour
|
Could you make PR for generating the streams file as well please ? It make sense to look at it at the same time From |
See CDEPS/datm/datm_datamode_jra_mod.F90 Lines 199 to 233 in 0b2d3bd Where only some streams use and for other streams, there is logic saying one or another stream is required. |
Description of changes
This PR addresses issue #548 and updates
datm/datm_datamode_era5_mod.F90to support ERA5 forcing for ACCESS-OM3 configs.The ERA5 datamode now aligns with the available ERA5 variables and computes required CDEPS fields internally. In particular, humidity (Sa_q2m, Sa_shum) is derived from ERA5 2 m temperature, dewpoint temperature, and pressure, and atmospheric density (Sa_dens) is computed internally from pressure, temperature, and humidity.
Additional atmospheric state fields expected by the mediator are now advertised in the ERA5 datamode:
Additional stream pointers were also added for precipitation and snow fluxes expected by the mediator:
These fields are currently read as stream pointers now (it was null before) which are required for mediator.
Specific notes
CDEPS Issues Fixed (include github issue #): ACCESS-NRI/access-om3-configs#548
Any User Interface Changes (namelist or namelist defaults changes): Changes made in
datm.streams.xml