Closed fabern closed 2 months ago
This commit fixes the consistency check that AET (tot) must be equal to AET_soil and AET_canop.
It does so by reducing AET_canop whenever AET reduced, leaving AET_soil untouched. However, this can yield negative AET_canop fluxes, meaning water is pulled out of the plant into the soil. It would probably be more reasonable to modify AET_soil and AET_canop accordingly.
@stineb Do you see a good solution to assert AET == AET_soil + AET_canopy
when AET
is reduced to to soil moisture stress?
It could be done by maintaining the fraction (canopy transpiration / ET).
TODO: many tests are currently not working. I fix these before PR merging.
@fabern tests may fail also in phydro. You don't have to fix those before merging phydro-fix-le-output
into phydro
.
This branch will be used to fix #220