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.
Problem
Tmr._source_grid_maskdoes 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.