Skip to content

wetfac calculation: ensure consistent approach for the introduction of groundwater work #559

@ccarouge

Description

@ccarouge

The groundwater and Or evaporation schemes calculate wetfac differently to the default case. For this, the groundwater work introduces a calc_srf_wet_fraction() subroutine in cable_gw_hydro.F90.

Recently, in the main branch, some work was done on wetfac and the calculation was moved to the initialize_wetfac procedure in cbl_init_wetfac_mod.F90.

We need to decide on the approach we want to take so we do not introduce 2 equivalent subroutines in CABLE.

  1. The calculations in both branches for the default case are the same except the GW work introduces the ice/liquid density ratio:
ssnow%wbice(i,1) * den_rat & ! MMY not sure whether needed but add * den_rat
                                / ssnow%wb(i,1) )**2 

but with an "unsure" comment. Do we want to adopt or not?
This corresponds to this code in main (without the densities ratio):

ice_ratio = (ssnow_wbice(i) / ssnow_wb(i))**2
!~ 1-Ice_ratio^2
ice_factor = 1._r_2 - MIN(0.2_r_2, ice_ratio)
ice_factor = REAL(MAX(0.5_r_2, ice_factor))
ssnow_wetfac(i) = ssnow_wetfac(i) * ice_factor

  1. Placement of the subroutine. I don't think placing this subroutine in the GW alternative soil module makes sense. I would keep the separate module we have introduced in main.

  2. Name of file/module/subroutine. The subroutine and module in main are called initialize or init but this calculation seems to be done every time step, so not an initialisation but a calculation. Should we adopt the GW naming instead: calc_srf_wet_fraction?

This impacts the CABLE code, ESM1.6 and AM3. Any change should be introduced in all 3 code bases and tested in all 3 codes.

@har917 Any view on the use of the densities and naming?
@JhanSrbinovsky Any view on the naming? Not asking you to do anything, I just want a decision for now. If we decide on changes, ACCESS-NRI can handle them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions