![]() |
ryujin 2.5.0 revision c64172211cf21344cb9b9b0f3a1266aa6400d392
|
#include <include/ryujin/interface/solution_transfer.h>


Public Member Functions | |
Functions for solution transfer after mesh adaptation and | |
for serialization/deserialization | |
| virtual void | prepare_projection (const StateVector< Number > &old_state_vector)=0 |
| virtual void | project (StateVector< Number > &new_state_vector)=0 |
Information and statistics | |
| unsigned int | handle_ |
| unsigned int | get_handle () const |
| void | set_handle (unsigned int handle) |
| void | reset_handle () |
| bool | has_handle () const |
| SolutionTransfer (const std::string &subsection) | |
The interface of a SolutionTransfer: it attaches the state to the triangulation before mesh adaptation or serialization, and projects the attached data into a new state vector afterwards.
The interface holds the handle of the data attached to the triangulation.
Definition at line 32 of file solution_transfer.h.
|
inlineexplicitprotected |
Constructor.
Definition at line 119 of file solution_transfer.h.
|
pure virtual |
Prepare projection (and serialization) by attaching all necessary data to the triangulation to perform a projection after mesh adaptation, or a Triangulation::store()/load() operation.
Implemented in ryujin::SolutionTransfer< HyperbolicDescription, dim, Number >.
|
pure virtual |
Project the data stored in the triangulation into a new state vector new_state_vector. The attached data either comes from a previous call to prepare_projection() prior to mesh adaptation or has been read back in from a checkpoint after a call to Triangulation::load().
Implemented in ryujin::SolutionTransfer< HyperbolicDescription, dim, Number >.
|
inline |
Return the handle associated with the call back that was set by prepare_projection() and the associated data attached to the triangulation.
Definition at line 69 of file solution_transfer.h.
References ryujin::Interface::SolutionTransfer< dim, Number >::handle_.
|
inline |
Set the handle associated data attached to the triangulation. This function has to be called after a Triangulation::load() operation and prior to project().
Definition at line 84 of file solution_transfer.h.
References ryujin::Interface::SolutionTransfer< dim, Number >::handle_.
|
inline |
Invalidate the currently stored handle. After a call to this function a new handle can be registered with prepare_projection(), or set_handle().
Definition at line 99 of file solution_transfer.h.
References ryujin::Interface::SolutionTransfer< dim, Number >::handle_.
|
inline |
Return whether data is attached to the triangulation, i.e., whether a valid handle is set.
Definition at line 108 of file solution_transfer.h.
References ryujin::Interface::SolutionTransfer< dim, Number >::handle_.
|
protected |
The handle of the data attached to the triangulation, or dealii::numbers::invalid_unsigned_int if no data is attached.
Definition at line 132 of file solution_transfer.h.
Referenced by ryujin::Interface::SolutionTransfer< dim, Number >::get_handle(), ryujin::Interface::SolutionTransfer< dim, Number >::has_handle(), ryujin::Interface::SolutionTransfer< dim, Number >::reset_handle(), and ryujin::Interface::SolutionTransfer< dim, Number >::set_handle().