modflowpy / flopy

A Python package to create, run, and post-process MODFLOW-based models.
https://flopy.readthedocs.io
Other
507 stars 307 forks source link

fix(mp7particledata): fix get_extent() vertical extent calculation #2307

Closed wpbonelli closed 5 days ago

wpbonelli commented 5 days ago

Vertical extent is miscalculated for structured grids when providing a cell index, only the first layer is handled properly. This causes bad results from *ParticleData.to_coords() and .to_prp().