version 3.10-dev
adaptive/griddatatransfer.hh
Go to the documentation of this file.
1// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2// vi: set et ts=4 sw=4 sts=4:
3//
4// SPDX-FileCopyrightInfo: Copyright © DuMux Project contributors, see AUTHORS.md in root folder
5// SPDX-License-Identifier: GPL-3.0-or-later
6//
12#ifndef DUMUX_ADAPTIVE_GRIDDATATRANSFER_HH
13#define DUMUX_ADAPTIVE_GRIDDATATRANSFER_HH
14
15namespace Dumux {
16
21template<class Grid>
23{
24public:
26 virtual ~GridDataTransfer() = default;
27
29 virtual void store(const Grid&) = 0;
30
32 virtual void reconstruct(const Grid&) = 0;
33};
34} // end namespace Dumux
35
36#endif
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
virtual ~GridDataTransfer()=default
pure virtual base class needs virtual destructor
Definition: adapt.hh:17