![]() |
MODFLOW 6
version 6.7.0.dev3
USGS Modular Hydrologic Model
|
Computes and caches local extrema for each cell and its connected neighbors. More...
Private Member Functions | |
procedure | set_field |
procedure | get_min |
procedure | get_max |
final | destructor |
procedure, private | compute_local_extrema |
procedure, private | find_local_extrema |
type(localcellextrematype) function | constructor (dis) |
Private Attributes | |
class(disbasetype), pointer | dis |
real(dp), dimension(:), allocatable | min |
real(dp), dimension(:), allocatable | max |
This class computes the minimum and maximum values within the local stencil of each cell (the cell itself plus all directly connected neighboring cells). The extrema are computed once when the scalar field is set and then cached for fast retrieval. This is particularly useful for TVD limiters and slope limiting algorithms that need to enforce monotonicity constraints.
The local extrema computation follows the connectivity pattern defined by the discretization object, examining all cells that share a face with the target cell. This creates a computational stencil that includes the central cell and its immediate neighbors.
Definition at line 26 of file LocalCellExtrema.f90.
|
private |
Definition at line 37 of file LocalCellExtrema.f90.
|
private |
Definition at line 46 of file LocalCellExtrema.f90.
|
finalprivate |
|
private |
|
private |
Definition at line 34 of file LocalCellExtrema.f90.
|
private |
Definition at line 33 of file LocalCellExtrema.f90.
|
private |
Definition at line 32 of file LocalCellExtrema.f90.
|
private |
Definition at line 28 of file LocalCellExtrema.f90.
|
private |
Definition at line 30 of file LocalCellExtrema.f90.
|
private |
Definition at line 29 of file LocalCellExtrema.f90.