ExaDG
Loading...
Searching...
No Matches
mass_kernel.h
1/* ______________________________________________________________________
2 *
3 * ExaDG - High-Order Discontinuous Galerkin for the Exa-Scale
4 *
5 * Copyright (C) 2021 by the ExaDG authors
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
22#ifndef INCLUDE_OPERATORS_MASS_KERNEL_H_
23#define INCLUDE_OPERATORS_MASS_KERNEL_H_
24
25#include <exadg/matrix_free/integrators.h>
26#include <exadg/operators/integrator_flags.h>
27#include <exadg/operators/mapping_flags.h>
28
29namespace ExaDG
30{
31template<int dim, typename Number>
33{
34public:
36 {
37 }
38
40 get_integrator_flags() const
41 {
42 IntegratorFlags flags;
43
44 flags.cell_evaluate = dealii::EvaluationFlags::values;
45 flags.cell_integrate = dealii::EvaluationFlags::values;
46
47 return flags;
48 }
49
50 static MappingFlags
51 get_mapping_flags()
52 {
53 MappingFlags flags;
54
55 flags.cells = dealii::update_JxW_values;
56
57 // no face integrals
58
59 return flags;
60 }
61
62 /*
63 * Volume flux, i.e., the term occurring in the volume integral
64 */
65 template<typename T>
66 inline DEAL_II_ALWAYS_INLINE //
67 T
68 get_volume_flux(double scaling_factor, T const & value) const
69 {
70 return scaling_factor * value;
71 }
72};
73
74} // namespace ExaDG
75
76#endif /* INCLUDE_OPERATORS_MASS_KERNEL_H_ */
Definition mass_kernel.h:33
Definition driver.cpp:33
Definition integrator_flags.h:30
Definition mapping_flags.h:31