|
Peano
|
Reusable Cartesian reconstruction context. More...
#include <interpolation.h>

Public Member Functions | |
| CartesianPointInterpolator (const GridData &gridData, const CartesianToSurfaceOptions &options={}) | |
| bool | coversTarget (const GridCoordinate &target) const |
True when target lies inside the sampled Cartesian domain, widened by the configured domainRelativeTolerance. | |
| GridCoordinate | domainMinimum () const |
| Corner-to-corner extent of the sampled domain, for diagnostics. | |
| GridCoordinate | domainMaximum () const |
| void | interpolatePoints (std::span< const GridCoordinate > targets, std::vector< InterpolatedCartesianPoint > &output) const |
Reconstruct physical fields in exactly the order of targets. | |
Private Attributes | |
| const GridData * | _gridData |
| CartesianToSurfaceOptions | _options |
| CartesianSpatialIndex | _spatialIndex |
| GridCoordinate | _domainMinimum {} |
| GridCoordinate | _domainMaximum {} |
| double | _domainDiagonal = 0.0 |
Reusable Cartesian reconstruction context.
The GridData supplied to the constructor must outlive this object. Its immutable spatial index is built once and reused by every interpolatePoints() call, including calls made by successive nonlinear AH iterations.
Definition at line 236 of file interpolation.h.
|
explicit |
| bool exahype2::ccz4::ahf::CartesianPointInterpolator::coversTarget | ( | const GridCoordinate & | target | ) | const |
True when target lies inside the sampled Cartesian domain, widened by the configured domainRelativeTolerance.
This is the same test interpolatePoints applies per point, exposed so a caller can reject an unusable reference point or initial radius up front instead of discovering it through non-finite residuals.
| GridCoordinate exahype2::ccz4::ahf::CartesianPointInterpolator::domainMaximum | ( | ) | const |
Definition at line 254 of file interpolation.h.
References _domainMaximum.
| GridCoordinate exahype2::ccz4::ahf::CartesianPointInterpolator::domainMinimum | ( | ) | const |
Corner-to-corner extent of the sampled domain, for diagnostics.
Definition at line 253 of file interpolation.h.
References _domainMinimum.
| void exahype2::ccz4::ahf::CartesianPointInterpolator::interpolatePoints | ( | std::span< const GridCoordinate > | targets, |
| std::vector< InterpolatedCartesianPoint > & | output ) const |
Reconstruct physical fields in exactly the order of targets.
|
private |
Definition at line 268 of file interpolation.h.
|
private |
Definition at line 267 of file interpolation.h.
Referenced by domainMaximum().
|
private |
Definition at line 266 of file interpolation.h.
Referenced by domainMinimum().
|
private |
Definition at line 263 of file interpolation.h.
|
private |
Definition at line 264 of file interpolation.h.
|
private |
Definition at line 265 of file interpolation.h.