If currentDepth and netRainfallrate is zero, a dry mode time step is performed, otherwise if any of those is larger than zero, a wet mode time step is performed.
The currentDepth is also used as depth available for infiltration, in case of IntegratedHorton is set, i.e. the returned infiltration depth is limited by this parameter.public double CalculateInfiltration(
double dt,
double netRainfallrate,
double currentDepth
)