The base class for data transfer classes.
More...
#include <DataTransfer.hpp>
Inherits Base.
|
|
template<class Impl , Dune::disableCopyMove< DataTransfer, Impl > = 0> |
| | DataTransfer (Impl &&impl) |
| | Constructor from a type supporting the DataTransferInterface.
|
| |
|
| DataTransfer ()=default |
| | Default Constructor.
|
| |
| void | preAdapt (Basis const &basis, Container const &container, bool mightCoarsen) |
| | Collect data that is needed before grid adaption. More...
|
| |
| void | adapt (Basis const &basis, Container &container) |
| | Interpolate data to new grid after grid adaption. More...
|
| |
| void | postAdapt (Container &container) |
| | Perform cleanup after grid adaption. More...
|
| |
template<class Basis, class Container>
class AMDiS::DataTransfer< Basis, Container >
The base class for data transfer classes.
Type-erasure base class for data-transfer.
- Template Parameters
-
| Basis | The global basis, the data to interpolate is defined on. |
| Container | A vector type for storign the data to interpolate. |
◆ adapt()
| void adapt |
( |
Basis const & |
basis, |
|
|
Container & |
container |
|
) |
| |
|
inline |
Interpolate data to new grid after grid adaption.
- Parameters
-
| basis | The global basis after the grid is updated |
| container | The original data vector not yet updated. Should be adapted in this method. |
◆ postAdapt()
| void postAdapt |
( |
Container & |
container | ) |
|
|
inline |
Perform cleanup after grid adaption.
- Parameters
-
| container | The data vector after any adaption and data transfer |
◆ preAdapt()
| void preAdapt |
( |
Basis const & |
basis, |
|
|
Container const & |
container, |
|
|
bool |
mightCoarsen |
|
) |
| |
|
inline |
Collect data that is needed before grid adaption.
- Parameters
-
| basis | The global basis before the grid is updated. |
| container | The original data before grid adaption, can be used to create a persistent storage. |
| mightCoarsen | Flag to indicate whether there are elements marked for coarsening. |
The documentation for this class was generated from the following file: