mass_balance Subroutine

public subroutine mass_balance(dels, ktau, ssnow, soil, canopy, met, air, bal)

Calculates the energy and water balances at each time step as well as the cumulative balance over the simulation.

Arguments

Type IntentOptional Attributes Name
real, intent(in) :: dels

Time step length

integer, intent(in) :: ktau

Number of time steps since the start of the simulation

type(soil_snow_type), intent(in) :: ssnow

Soil and snow variables data

type(soil_parameter_type), intent(in) :: soil

Soil parameters

type(canopy_type), intent(in) :: canopy

Canopy variables data

type(met_type), intent(in) :: met

Met forcing data

type(air_type), intent(in) :: air

Air variables data

type(balances_type), intent(inout) :: bal

Water balance variables data