The computational grid (Grid) component provides an
interface for discretization of fields and construction of various operators
and functions over these fields.
Grid users can set various options at runtime via the
options database (e.g., specifying the interpolation method via
-grid_int_type method
).
Grid internally employs a Mesh
to describe the support of its discretizations, and
Discretization objects
to describe the process itself.
Grid users can also query the Mesh and Discretizations directly in application
codes by first extracting the them from the Grid via
GridGetMesh() or
GridGetDiscretization() and
then directly calling various Mesh (or Discretization) routines (e.g.,
MeshLocatePoint()
).