12#ifndef DUMUX_ADAPTIVE_ADAPT_HH
13#define DUMUX_ADAPTIVE_ADAPT_HH
31 const bool mightCoarsen = grid.preAdapt();
34 dataTransfer.
store(grid);
37 const bool refine = grid.adapt();
46 return mightCoarsen || refine;
Interface to be used by classes transferring grid data on adaptive grids.
Definition: adaptive/griddatatransfer.hh:23
virtual void store(const Grid &)=0
store user data before grid adaption
virtual void reconstruct(const Grid &)=0
store user data after grid adaption
bool adapt(Grid &grid, GridDataTransfer< Grid > &dataTransfer)
Adapt the grid and reconstruct the user data.
Definition: adapt.hh:28
Performs the transfer of data on a grid from before to after adaptation.