ExaDG
Loading...
Searching...
No Matches
inverse_mass_parameters.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 EXADG_OPERATORS_INVERSE_MASS_PARAMETERS_H_
23#define EXADG_OPERATORS_INVERSE_MASS_PARAMETERS_H_
24
25// ExaDG
26#include <exadg/solvers_and_preconditioners/solvers/solver_data.h>
27
28namespace ExaDG
29{
30enum class InverseMassType
31{
32 MatrixfreeOperator, // currently only available via deal.II for Hypercube elements with n_nodes_1d
33 // = n_q_points_1d
34 ElementwiseKrylovSolver,
35 BlockMatrices,
36 GlobalKrylovSolver
37};
38
39enum class PreconditionerMass
40{
41 None,
42 PointJacobi,
43 BlockJacobi
44};
45
53struct InverseMassParameters
54{
55 InverseMassParameters()
56 : implementation_type(InverseMassType::MatrixfreeOperator),
57 preconditioner(PreconditionerMass::PointJacobi),
58 solver_data(SolverData(1000, 1e-12, 1e-12))
59 {
60 }
61
62 // The implementation type used to invert the mass operator.
63 InverseMassType implementation_type;
64
65 // This parameter is only relevant if the mass operator is inverted by an iterative solver with
66 // matrix-free implementation, InverseMassType::ElementwiseKrylovSolver or
67 // InverseMassType::GlobalKrylovSolver.
68 PreconditionerMass preconditioner;
69
70 // solver data for iterative solver in case of implementation type
71 // InverseMassType::ElementwiseKrylovSolver or InverseMassType::GlobalKrylovSolver.
72 SolverData solver_data;
73};
74
75} // namespace ExaDG
76
77#endif /* EXADG_OPERATORS_INVERSE_MASS_PARAMETERS_H_ */
Definition driver.cpp:33
Definition solver_data.h:34