GCC Code Coverage Report


Directory: ../../../builds/dumux-repositories/
File: /builds/dumux-repositories/dumux/dumux/adaptive/griddatatransfer.hh
Date: 2024-09-21 20:52:54
Exec Total Coverage
Lines: 0 1 0.0%
Functions: 0 2 0.0%
Branches: 0 0 -%

Line Branch Exec Source
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 //
7 /*!
8 * \file
9 * \ingroup Adaptive
10 * \brief Interface to be used by classes transferring grid data on adaptive grids
11 */
12 #ifndef DUMUX_ADAPTIVE_GRIDDATATRANSFER_HH
13 #define DUMUX_ADAPTIVE_GRIDDATATRANSFER_HH
14
15 namespace Dumux {
16
17 /*!
18 * \ingroup Adaptive
19 * \brief Interface to be used by classes transferring grid data on adaptive grids
20 */
21 template<class Grid>
22 class GridDataTransfer
23 {
24 public:
25 //! pure virtual base class needs virtual destructor
26 virtual ~GridDataTransfer() = default;
27
28 //! store user data before grid adaption
29 virtual void store(const Grid&) = 0;
30
31 //! store user data after grid adaption
32 virtual void reconstruct(const Grid&) = 0;
33 };
34 } // end namespace Dumux
35
36 #endif
37