Rythmos - Transient Integration for Differential Equations
Version of the Day
|
concrete class for interpolation buffer functionality. More...
#include <Rythmos_InterpolationBuffer_decl.hpp>
Public Member Functions | |
RCP< const Thyra::VectorSpaceBase< Scalar > > | get_x_space () const |
Redefined from Rythmos::InterpolationBufferBase. More... | |
InterpolationBuffer () | |
void | initialize (const RCP< InterpolatorBase< Scalar > > &interpolator, int storage) |
Initialize the buffer: More... | |
void | setStorage (int storage) |
Set the maximum storage of this buffer. More... | |
int | getStorage () const |
Get the maximum storage of this buffer. More... | |
IBPolicy | getIBPolicy () |
~InterpolationBuffer () | |
Destructor. More... | |
void | addPoints (const Array< Scalar > &time_vec, const Array< RCP< const Thyra::VectorBase< Scalar > > > &x_vec, const Array< RCP< const Thyra::VectorBase< Scalar > > > &xdot_vec) |
Add point to buffer. More... | |
void | getPoints (const Array< Scalar > &time_vec, Array< RCP< const Thyra::VectorBase< Scalar > > > *x_vec, Array< RCP< const Thyra::VectorBase< Scalar > > > *xdot_vec, Array< ScalarMag > *accuracy_vec) const |
Get value from buffer. More... | |
TimeRange< Scalar > | getTimeRange () const |
void | getNodes (Array< Scalar > *time_vec) const |
Get interpolation nodes. More... | |
int | getOrder () const |
Get order of interpolation. More... | |
void | removeNodes (Array< Scalar > &time_vec) |
Remove interpolation nodes. More... | |
std::string | description () const |
Redefined from Teuchos::Describable. More... | |
void | describe (Teuchos::FancyOStream &out, const Teuchos::EVerbosityLevel verbLevel) const |
void | setParameterList (RCP< Teuchos::ParameterList > const ¶mList) |
Redefined from Teuchos::ParameterListAcceptor. More... | |
RCP< Teuchos::ParameterList > | getNonconstParameterList () |
RCP< Teuchos::ParameterList > | unsetParameterList () |
Public Member Functions inherited from Rythmos::InterpolatorAcceptingObjectBase< Scalar > | |
virtual | ~InterpolatorAcceptingObjectBase () |
Related Functions | |
(Note that these are not member functions.) | |
template<class Scalar > | |
RCP< InterpolationBuffer < Scalar > > | interpolationBuffer (const RCP< InterpolatorBase< Scalar > > &interpolator=Teuchos::null, int storage=0) |
Nonmember constructor. More... | |
Related Functions inherited from Rythmos::InterpolationBufferBase< Scalar > | |
template<class Scalar > | |
RCP< const Thyra::VectorBase < Scalar > > | get_x (const InterpolationBufferBase< Scalar > &interpBuffer, const Scalar &t) |
Get a single point x(t) from an interpolation buffer. More... | |
template<class Scalar > | |
RCP< const Thyra::VectorBase < Scalar > > | get_xdot (const InterpolationBufferBase< Scalar > &interpBuffer, const Scalar &t) |
Get a single point xdot(t) from an interpolation buffer. More... | |
template<class Scalar > | |
void | get_x_and_x_dot (const InterpolationBufferBase< Scalar > &interpBuffer, const Scalar t, const Ptr< RCP< const Thyra::VectorBase< Scalar > > > &x, const Ptr< RCP< const Thyra::VectorBase< Scalar > > > &x_dot) |
Nonmember helper function to get x and x_dot at t. More... | |
template<class Scalar > | |
void | assertTimePointsAreSorted (const Array< Scalar > &time_vec) |
Assert that a time point vector is sorted. More... | |
template<class Scalar > | |
void | assertNoTimePointsBeforeCurrentTimeRange (const InterpolationBufferBase< Scalar > &interpBuffer, const Array< Scalar > &time_vec, const int &startingTimePointIndex=0) |
Assert that none of the time points fall before the current time range for an interpolation buffer object. More... | |
template<class Scalar > | |
void | assertNoTimePointsInsideCurrentTimeRange (const InterpolationBufferBase< Scalar > &interpBuffer, const Array< Scalar > &time_vec) |
Assert that none of the time points fall inside the current time range for an interpolation buffer object. More... | |
template<class TimeType > | |
void | selectPointsInTimeRange (const Array< TimeType > &points_in, const TimeRange< TimeType > &range, const Ptr< Array< TimeType > > &points_out) |
Select points from an Array that sit in a TimeRange. More... | |
template<class TimeType > | |
void | removePointsInTimeRange (Array< TimeType > *points_in, const TimeRange< TimeType > &range) |
Remove points from an Array that sit in a TimeRange. More... | |
template<class Scalar > | |
bool | getCurrentPoints (const InterpolationBufferBase< Scalar > &interpBuffer, const Array< Scalar > &time_vec, Array< RCP< const Thyra::VectorBase< Scalar > > > *x_vec, Array< RCP< const Thyra::VectorBase< Scalar > > > *xdot_vec, int *nextTimePointIndex) |
Get time points in the current range of an interpolation buffer object. More... | |
void | setInterpolator (const RCP< InterpolatorBase< Scalar > > &interpolator) |
Redefined from Rythmos::InterpolatorAcceptingObjectBase. More... | |
RCP< InterpolatorBase< Scalar > > | getNonconstInterpolator () |
RCP< const InterpolatorBase < Scalar > > | getInterpolator () const |
RCP< InterpolatorBase< Scalar > > | unSetInterpolator () |
Unset the interpolator for this buffer. More... | |
Additional Inherited Members | |
Public Types inherited from Rythmos::InterpolationBufferBase< Scalar > | |
typedef Teuchos::ScalarTraits < Scalar >::magnitudeType | ScalarMag |
concrete class for interpolation buffer functionality.
Definition at line 50 of file Rythmos_InterpolationBuffer_decl.hpp.
Rythmos::InterpolationBuffer< Scalar >::InterpolationBuffer | ( | ) |
Definition at line 80 of file Rythmos_InterpolationBuffer_def.hpp.
|
inline |
Destructor.
Definition at line 97 of file Rythmos_InterpolationBuffer_decl.hpp.
|
virtual |
Redefined from Rythmos::InterpolationBufferBase.
Implements Rythmos::InterpolationBufferBase< Scalar >.
Definition at line 98 of file Rythmos_InterpolationBuffer_def.hpp.
void Rythmos::InterpolationBuffer< Scalar >::initialize | ( | const RCP< InterpolatorBase< Scalar > > & | interpolator, |
int | storage | ||
) |
Initialize the buffer:
Definition at line 110 of file Rythmos_InterpolationBuffer_def.hpp.
|
virtual |
Redefined from Rythmos::InterpolatorAcceptingObjectBase.
Set the interpolator for this buffer
Implements Rythmos::InterpolatorAcceptingObjectBase< Scalar >.
Definition at line 157 of file Rythmos_InterpolationBuffer_def.hpp.
|
virtual |
Implements Rythmos::InterpolatorAcceptingObjectBase< Scalar >.
Definition at line 175 of file Rythmos_InterpolationBuffer_def.hpp.
|
virtual |
Implements Rythmos::InterpolatorAcceptingObjectBase< Scalar >.
Definition at line 182 of file Rythmos_InterpolationBuffer_def.hpp.
|
virtual |
Unset the interpolator for this buffer.
Implements Rythmos::InterpolatorAcceptingObjectBase< Scalar >.
Definition at line 188 of file Rythmos_InterpolationBuffer_def.hpp.
void Rythmos::InterpolationBuffer< Scalar >::setStorage | ( | int | storage | ) |
Set the maximum storage of this buffer.
Definition at line 131 of file Rythmos_InterpolationBuffer_def.hpp.
int Rythmos::InterpolationBuffer< Scalar >::getStorage | ( | ) | const |
Get the maximum storage of this buffer.
Definition at line 150 of file Rythmos_InterpolationBuffer_def.hpp.
IBPolicy Rythmos::InterpolationBuffer< Scalar >::getIBPolicy | ( | ) |
Definition at line 535 of file Rythmos_InterpolationBuffer_def.hpp.
|
virtual |
Add point to buffer.
Implements Rythmos::InterpolationBufferBase< Scalar >.
Definition at line 197 of file Rythmos_InterpolationBuffer_def.hpp.
|
virtual |
Get value from buffer.
Implements Rythmos::InterpolationBufferBase< Scalar >.
Definition at line 336 of file Rythmos_InterpolationBuffer_def.hpp.
|
virtual |
Implements Rythmos::InterpolationBufferBase< Scalar >.
Definition at line 362 of file Rythmos_InterpolationBuffer_def.hpp.
|
virtual |
Get interpolation nodes.
Implements Rythmos::InterpolationBufferBase< Scalar >.
Definition at line 373 of file Rythmos_InterpolationBuffer_def.hpp.
|
virtual |
Get order of interpolation.
Implements Rythmos::InterpolationBufferBase< Scalar >.
Definition at line 426 of file Rythmos_InterpolationBuffer_def.hpp.
|
virtual |
Remove interpolation nodes.
Implements Rythmos::InterpolationBufferBase< Scalar >.
Definition at line 393 of file Rythmos_InterpolationBuffer_def.hpp.
std::string Rythmos::InterpolationBuffer< Scalar >::description | ( | ) | const |
Redefined from Teuchos::Describable.
Definition at line 433 of file Rythmos_InterpolationBuffer_def.hpp.
void Rythmos::InterpolationBuffer< Scalar >::describe | ( | Teuchos::FancyOStream & | out, |
const Teuchos::EVerbosityLevel | verbLevel | ||
) | const |
Definition at line 441 of file Rythmos_InterpolationBuffer_def.hpp.
void Rythmos::InterpolationBuffer< Scalar >::setParameterList | ( | RCP< Teuchos::ParameterList > const & | paramList | ) |
Redefined from Teuchos::ParameterListAcceptor.
Definition at line 465 of file Rythmos_InterpolationBuffer_def.hpp.
RCP< Teuchos::ParameterList > Rythmos::InterpolationBuffer< Scalar >::getNonconstParameterList | ( | ) |
Definition at line 520 of file Rythmos_InterpolationBuffer_def.hpp.
RCP< Teuchos::ParameterList > Rythmos::InterpolationBuffer< Scalar >::unsetParameterList | ( | ) |
Definition at line 527 of file Rythmos_InterpolationBuffer_def.hpp.
|
related |
Nonmember constructor.
Definition at line 169 of file Rythmos_InterpolationBuffer_decl.hpp.