interface for data transfer during grid adaption
Summary
The general interface for GridTransfer and DataTransfer classes
Details
- A class
GridTransfer
is added that abstracts the grid coarsening/refinement and adds calls to data adaption - The
DataTransfer
class is used to define an interface for interpolation of data during coarsening/refinement of the grid
Discussion
-
Where to instantiate the
GridTransfer
class insideProblemStat
? -
How to specify which
DOFVectors
are added to theDataTransfer
? -
All
DOFVectors
should be resized to the correct size and only some needs full interpolation. How to distinguish? - How to write and add custom interpolation functions?
-
Can we use the return values of
preAdapt()
andadapt()
of the grid, to control when data interpolation is necessary? - @spraetor Then, maybe we should provide a way to turn adaptivity on and off and maybe set how often it is called. This should be an initfile parameter
-
Use Interface of
dune/grid/common/adaptcallback.hh