Open olyson opened 6 years ago
Turns out that removing these lines causes water balance errors because this updated smp_l for use by Photosynthesis in the next time step. Likely fix is to keep this calculation (because it is updating smp_l from updated soil water), but make the calculation consistent with what is done in SoilWaterMovement (which includes ice content as well as liquid water content). This will change answers, needs to be tested.
General bug information
CTSM version you are using: release-clm5.0.01
Does this bug cause significantly incorrect results in the model's science? Yes
Configurations affected: All
Details of bug
There are two different definitions for SMP (smp_l in the code). The first, and correct (consistent), is in SoilWaterMovementMod.F90 (subroutine compute_hydraulic_properties) where smp_l(c,j) = smp(j). The second, which should be removed because it is overwriting the first definition and is inconsistent with how smp is used in the soil water equations, is in HydrologyNoDrainageMod.F90: