Stores necessary data and interpolates on to new time points at scri+. More...
#include <ScriPlusInterpolationManager.hpp>
Public Member Functions  
ScriPlusInterpolationManager (const size_t target_number_of_points, const size_t vector_size, std::unique_ptr< intrp::SpanInterpolator > interpolator) noexcept  
void  insert_data (const DataVector &u_bondi, const VectorTypeToInterpolate &to_interpolate) noexcept 
provide data to the interpolation manager. More...  
void  insert_target_time (const double time) noexcept 
Request a target time to be interpolated to when enough data has been accumulated. More...  
bool  first_time_is_ready_to_interpolate () const noexcept 
Determines whether enough data before and after the first time in the target time queue has been provided to interpolate. More...  
const std::deque< std::pair< double, double > > &  get_u_bondi_ranges () const noexcept 
std::pair< double, VectorTypeToInterpolate >  interpolate_first_time () noexcept 
Interpolate to the first target time in the queue, returning both the time and the interpolated data at that time. More...  
std::pair< double, VectorTypeToInterpolate >  interpolate_and_pop_first_time () noexcept 
Interpolate to the first target time in the queue, returning both the time and the interpolated data at that time, and remove the first time from the queue. More...  
size_t  number_of_target_times () const noexcept 
return the number of times in the target times queue  
size_t  number_of_data_points () const noexcept 
return the number of data points that have been provided to the interpolation manager  
Friends  
struct  ScriPlusInterpolationManager< VectorTypeToInterpolate, Tags::Du< Tag > > 
Stores necessary data and interpolates on to new time points at scri+.
The coordinate time used for the CCE evolution is not the same as the asymptotic inertial retarded time, which is determined through a separate evolution equation. This class manages the scri+ data passed in (via insert_data()
) along with the set of inertial retarded times associated with that data, and interpolates to a set of requested times (supplied via insert_target_time()
).
Template parameters:
VectorTypeToInterpolate
: the vector type associated with the values to interpolate.Tag
: The tag associated with the interpolation procedure. This determines the behavior of the interpolation return value. The default is just interpolation, if Tag
has prefix Tags::Multiplies
or Tags::Du
, the interpolator performs the additional multiplication or time derivative as a step in the interpolation procedure.

noexcept 
Determines whether enough data before and after the first time in the target time queue has been provided to interpolate.
If possible, this function will require that the target time to be interpolated is reasonably centered on the range, but will settle for noncentered data if the time is too early for the given data, which is necessary to get the first couple of times out of the simulation. This function always returns false if all of the provided data is earlier than the next target time, indicating that the caller should wait until more data has been provided before interpolating.

inlinenoexcept 
provide data to the interpolation manager.
u_bondi
is a vector of inertial times, and to_interpolate
is the vector of values that will be interpolated to target times.

inlinenoexcept 
Request a target time to be interpolated to when enough data has been accumulated.
For optimization, we assume that these are inserted in ascending order.

noexcept 
Interpolate to the first target time in the queue, returning both the time and the interpolated data at that time, and remove the first time from the queue.
first_time_is_ready_to_interpolate
before calling the interpolation functions

noexcept 
Interpolate to the first target time in the queue, returning both the time and the interpolated data at that time.
first_time_is_ready_to_interpolate
before calling the interpolation functions