AMDiS 2.10
The Adaptive Multi-Dimensional Simulation Toolbox
DataTransfer< Basis, Container > Class Template Reference

The base class for data transfer classes. More...

#include <DataTransfer.hpp>

Inherits Base.

Public Member Functions

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...
 

Detailed Description

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
BasisThe global basis, the data to interpolate is defined on.
ContainerA vector type for storign the data to interpolate.

Member Function Documentation

◆ adapt()

void adapt ( Basis const &  basis,
Container &  container 
)
inline

Interpolate data to new grid after grid adaption.

Parameters
basisThe global basis after the grid is updated
containerThe original data vector not yet updated. Should be adapted in this method.

◆ postAdapt()

void postAdapt ( Container &  container)
inline

Perform cleanup after grid adaption.

Parameters
containerThe 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
basisThe global basis before the grid is updated.
containerThe original data before grid adaption, can be used to create a persistent storage.
mightCoarsenFlag to indicate whether there are elements marked for coarsening.

The documentation for this class was generated from the following file: