The function has three tasks: - it informs on current capacity for each level in mm. - it computes the states (in mm) of each saturation level - it computes the deficit S (for all sub surface layers, NOT overland flow layer)

do.groundwater.ddistAll(Layers, Magkap, nbStepsDelay, X)

Arguments

Layers
matrix describing the groundwater; the number of column represent the delay-steps, the row represent the levels (1st is the fastest, the last is the slowest)
Magkap
Maximaum capacity
nbStepsDelay
delay-steps for each level
X
excess water value

Value

The output is a list providing the three main features for groundwater( ddistx, ddist, S)

Examples

## Not run: ------------------------------------ # do.groundwater.ddistAll() ## ---------------------------------------------