Skip to content

GridHandle

GridHandle

Opaque handle to a compiled unstructured grid.

Produced by build_grid(). The handle is consumed (invalidated) by fit_waterloo() or fit_sspa() — it cannot be reused after fitting.

is_loaded

is_loaded() -> bool

Return True if the grid data is still resident in memory.

Returns False after the handle has been consumed by a fitting call.

n_cells

n_cells() -> int

Return the number of cells in the grid.