ThunderEgg
1.0.0
Interpolator.h
Go to the documentation of this file.
1
/***************************************************************************
2
* ThunderEgg, a library for solvers on adaptively refined block-structured
3
* Cartesian grids.
4
*
5
* Copyright (c) 2018-2021 Scott Aiton
6
*
7
* This program is free software: you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation, either version 3 of the License, or
10
* (at your option) any later version.
11
*
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
*
17
* You should have received a copy of the GNU General Public License
18
* along with this program. If not, see <https://www.gnu.org/licenses/>.
19
***************************************************************************/
20
21
#ifndef THUNDEREGG_GMG_INTERPOLATOR_H
22
#define THUNDEREGG_GMG_INTERPOLATOR_H
23
28
#include <
ThunderEgg/Vector.h
>
29
30
namespace
ThunderEgg::GMG
{
34
template
<
int
D>
35
class
Interpolator
36
{
37
public
:
41
virtual
~Interpolator
() {}
47
virtual
Interpolator<D>
*
clone
()
const
= 0;
54
virtual
void
interpolate
(
const
Vector<D>
& coarse,
Vector<D>
& fine)
const
= 0;
55
};
56
}
// namespace ThunderEgg::GMG
57
#endif
ThunderEgg::GMG::Interpolator::clone
virtual Interpolator< D > * clone() const =0
Clone this interpolator.
Vector.h
Vector class.
ThunderEgg::GMG::Interpolator::~Interpolator
virtual ~Interpolator()
Destroy the Interpolator object.
Definition:
Interpolator.h:41
ThunderEgg::GMG::Interpolator::interpolate
virtual void interpolate(const Vector< D > &coarse, Vector< D > &fine) const =0
Virtual interpolation operation that needs to be implemented in derived classes.
ThunderEgg::GMG::Interpolator
Abstract class for interpolation operators.
Definition:
Interpolator.h:35
ThunderEgg::Vector
Vector class for use in thunderegg.
Definition:
Vector.h:42
ThunderEgg::GMG
Geometric-Multigrid classes.
Definition:
Cycle.h:33
src
ThunderEgg
GMG
Interpolator.h
Generated by
1.8.17