Skip to content

Tmr._source_grid_mask does not exclude inactive parent cells #139

Description

@ntdosch

Problem

Tmr._source_grid_mask does not exclude inactive parent cells. Inactive cells containing HNOFLO/HDRY values (MODFLOW-NWT) or the hardcoded 1E30/-1E30 values for inactive/dry cells (MODFLOW 6) are included in the 3D interpolation as valid source points, contaminating interpolated perimeter boundary heads at nearby inset cells.

Expected behavior

The source grid mask should filter out cells where ibound !=0 or idomain ≤ 0 so that inactive/dry values are not passed to the interpolator as valid head data.

Fix

Exclude inactive parent cells from _source_grid_mask by combining the spatial mask with the parent's idomain/ibound so that only active cells are used as interpolation source points.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions