Skip to content

Infiltration when ZDF == 0.  #435

@Bdish22

Description

@Bdish22

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions