Tempus
Version of the Day
Time Integration
|
Base strategy class for interpolation functionality. More...
#include <Tempus_Interpolator.hpp>
Public Member Functions | |
virtual void | setNodes (const Teuchos::RCP< const std::vector< Teuchos::RCP< SolutionState< Scalar > > > > &nodes)=0 |
Store pointer to interpolation nodes. More... | |
virtual void | interpolate (const Scalar &t, SolutionState< Scalar > *state_out) const =0 |
Perform an interpolation. More... | |
virtual int | order () const =0 |
Return the order of the interpolation. More... | |
Base strategy class for interpolation functionality.
Definition at line 29 of file Tempus_Interpolator.hpp.
|
pure virtual |
Perform an interpolation.
Implemented in Tempus::InterpolatorLagrange< Scalar >.
|
pure virtual |
Return the order of the interpolation.
Implemented in Tempus::InterpolatorLagrange< Scalar >.
|
pure virtual |
Store pointer to interpolation nodes.
This function represent a persisting relationship between the interpolation nodes and the interpolator. For simple interpolators like linear and Hermite, this is not needed, but for interpolators like cubic splines where there is some computational work in assembling the interpolant, this is important.
Preconditions:
nodes
must have unique time values and be sorted in ascending time order Postconditions:
nodes
is a different pointer than was previously called, then it is possible that the interpolant will be recomputed when interpolate
is next called. Implemented in Tempus::InterpolatorLagrange< Scalar >.