SpECTRE
v2025.03.17
|
A protocol for the type alias post_interpolation_callbacks
found in an InterpolationTargetTag.
More...
#include <PostInterpolationCallback.hpp>
Classes | |
struct | test |
A protocol for the type alias post_interpolation_callbacks
found in an InterpolationTargetTag.
A struct conforming to the PostInterpolationCallback
protocol must have
apply
with one of the 3 signatures in the example. This apply function will be called once the interpolation is complete. DbTags
includes everything in the vars_to_interpolate_to_target
alias and the compute_items_on_target
alias of the InterpolationTargetTag. The apply
that returns a bool should return false only if it calls another intrp::Action
that still needs the volume data at this temporal_id (such as another iteration of the horizon finder). These functions must be able to take any type for the TemporalId
. If a specific temporal ID type is required, it should be static_assert
ed in the function itself.A struct conforming to this protocol can also have an optional static constexpr double fill_invalid_points_with
. Any points outside the Domain will be filled with this value. If this variable is not defined, then the apply
function must check for invalid points, and should typically exit with an error message if it finds any.
Here is an example of a class that conforms to this protocols: