-
Notifications
You must be signed in to change notification settings - Fork 5
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
A bug was found where when all the freezing and thawing fronts are equal to zero, all precipitation is directed to runoff and not allowed to infiltrate. This is because thaw_layers_lay is set to 0 during this period (instead of 1), which reduces possible infiltration to 0 and re-allocates it to runoff.
Below is a modification to the SoilX that solves the issue, and allows infiltration to occur when zd_front_array is equal to 0.
for (long ll = 0; ll < depths_size; ++ll) if (NO_Freeze[hh] || Zd_front_array[0][hh] == 0) //bdisher, 2023 - modification to allow infiltration of precipitatio when zd_front_array == 0 //if (NO_Freeze[hh]) thaw_layers_lay[ll][hh] = 1.0; // all unfrozen else thaw_layers_lay[ll][hh] = 0.0; // all frozen
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working