TPSALinearSolverParameters.hpp
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 Copyright 2025 NORCE AS
5
6 This file is part of the Open Porous Media project (OPM).
7
8 OPM is free software: you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation, either version 2 of the License, or
11 (at your option) any later version.
12
13 OPM is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with OPM. If not, see <http://www.gnu.org/licenses/>.
20
21 Consult the COPYING file in the top-level source directory of this
22 module for the precise wording of the license and the list of
23 copyright holders.
24*/
25#ifndef TPSA_LINEAR_SOLVER_PARAMETERS_HPP
26#define TPSA_LINEAR_SOLVER_PARAMETERS_HPP
27
29
30#include <string>
31
32
33// Default runtime parameters
34namespace Opm::Parameters {
35
36struct TpsaLinearSolverReduction { static constexpr double value = 1e-3; };
37struct TpsaRelaxedLinearSolverReduction { static constexpr double value = 1e-3; };
38struct TpsaLinearSolverMaxIter { static constexpr int value = 200; };
39struct TpsaLinearSolverRestart { static constexpr int value = 40; };
40struct TpsaLinearSolverVerbosity { static constexpr int value = 0; };
41struct TpsaIluRelaxation { static constexpr double value = 0.9; };
42struct TpsaIluFillinLevel { static constexpr int value = 0; };
43struct TpsaUseGmres { static constexpr bool value = false; };
44struct TpsaLinearSolverIgnoreConvergenceFailure { static constexpr bool value = false; };
45struct TpsaLinearSolver { static constexpr auto value = "ilu0"; };
46struct TpsaLinearSolverPrintJsonDefinition { static constexpr auto value = false; };
47
48} // namespace Opm::Parameters
49
50namespace Opm {
51
56{
57 void init();
58 static void registerParameters();
59 void reset();
60};
61
62} // namespace Opm
63
64#endif
Definition: blackoilnewtonmethodparams.hpp:31
Definition: blackoilbioeffectsmodules.hh:45
This class carries all parameters for the NewtonIterationBlackoilInterleaved class.
Definition: FlowLinearSolverParameters.hpp:98
Definition: TPSALinearSolverParameters.hpp:42
static constexpr int value
Definition: TPSALinearSolverParameters.hpp:42
Definition: TPSALinearSolverParameters.hpp:41
static constexpr double value
Definition: TPSALinearSolverParameters.hpp:41
Definition: TPSALinearSolverParameters.hpp:44
static constexpr bool value
Definition: TPSALinearSolverParameters.hpp:44
Definition: TPSALinearSolverParameters.hpp:38
static constexpr int value
Definition: TPSALinearSolverParameters.hpp:38
Definition: TPSALinearSolverParameters.hpp:45
static constexpr auto value
Definition: TPSALinearSolverParameters.hpp:45
Definition: TPSALinearSolverParameters.hpp:46
static constexpr auto value
Definition: TPSALinearSolverParameters.hpp:46
Definition: TPSALinearSolverParameters.hpp:36
static constexpr double value
Definition: TPSALinearSolverParameters.hpp:36
Definition: TPSALinearSolverParameters.hpp:39
static constexpr int value
Definition: TPSALinearSolverParameters.hpp:39
Definition: TPSALinearSolverParameters.hpp:40
static constexpr int value
Definition: TPSALinearSolverParameters.hpp:40
Definition: TPSALinearSolverParameters.hpp:37
static constexpr double value
Definition: TPSALinearSolverParameters.hpp:37
Definition: TPSALinearSolverParameters.hpp:43
static constexpr bool value
Definition: TPSALinearSolverParameters.hpp:43
Parametern for linear solver and preconditioner.
Definition: TPSALinearSolverParameters.hpp:56