9 #ifndef Tempus_Interpolator_hpp
10 #define Tempus_Interpolator_hpp
13 #include "Teuchos_VerboseObject.hpp"
14 #include "Teuchos_Describable.hpp"
15 #include "Teuchos_ParameterListAcceptorDefaultBase.hpp"
20 #include "Tempus_config.hpp"
21 #include "Tempus_SolutionState.hpp"
29 template<
class Scalar>
65 virtual int order()
const = 0;
70 template<
class Scalar>
79 template<
class Scalar>
90 template <
typename Scalar>
95 typedef typename ST::magnitudeType mag_type;
97 const mag_type tol = ST::magnitude(scale)*ST::eps()*mag_type(1000.0);
98 const mag_type diff = ST::magnitude(a-b);
100 return diff <= tol || diff <= ST::sfmin();
105 #endif //Tempus_Interpolator_hpp
virtual void setNodes(const Teuchos::RCP< const std::vector< Teuchos::RCP< SolutionState< Scalar > > > > &nodes)=0
Store pointer to interpolation nodes.
Base strategy class for interpolation functionality.
void interpolate(const Interpolator< Scalar > &interpolator, const Scalar &t, SolutionState< Scalar > *state_out)
Nonmember functions.
virtual void interpolate(const Scalar &t, SolutionState< Scalar > *state_out) const =0
Perform an interpolation.
bool floating_compare_equals(const Scalar &a, const Scalar &b, const Scalar &scale)
Helper function for comparing times.
virtual int order() const =0
Return the order of the interpolation.
Solution state for integrators and steppers. SolutionState contains the metadata for solutions and th...