Loading...
Searching...
No Matches
linalgparameters.hh
Go to the documentation of this file.
// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
// vi: set et ts=4 sw=4 sts=4:
/*
This file is part of the Open Porous Media project (OPM).
OPM is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
OPM is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with OPM. If not, see <http://www.gnu.org/licenses/>.
Consult the COPYING file in the top-level source directory of this
module for the precise wording of the license and the list of
copyright holders.
*/
#ifndef EWOMS_LINALG_PARAMETERS_HH
#define EWOMS_LINALG_PARAMETERS_HH
namespace Opm::Parameters {
struct GMResRestart { static constexpr int value = 10; };
template<class Scalar>
struct LinearSolverAbsTolerance { static constexpr Scalar value = -1.0; };
template<class Scalar>
struct LinearSolverMaxError { static constexpr Scalar value = 1e7; };
struct LinearSolverMaxIterations { static constexpr int value = 1000; };
struct LinearSolverOverlapSize { static constexpr unsigned value = 2; };
template<class Scalar>
struct LinearSolverTolerance { static constexpr Scalar value = 1e-3; };
struct LinearSolverVerbosity { static constexpr int value = 0; };
struct PreconditionerOrder { static constexpr int value = 0; };
template<class Scalar>
struct PreconditionerRelaxation { static constexpr Scalar value = 1.0; };
} // namespace Opm::Parameters
#endif
Opm::Parameters::GMResRestart
number of iterations between solver restarts for the GMRES solver
Definition linalgparameters.hh:35
Opm::Parameters::LinearSolverAbsTolerance
Maximum accepted error of the norm of the residual.
Definition linalgparameters.hh:41
Opm::Parameters::LinearSolverMaxError
Definition linalgparameters.hh:44
Opm::Parameters::LinearSolverMaxIterations
Maximum number of iterations eyecuted by the linear solver.
Definition linalgparameters.hh:47
Opm::Parameters::LinearSolverOverlapSize
The size of the algebraic overlap of the linear solver.
Definition linalgparameters.hh:56
Opm::Parameters::LinearSolverTolerance
Maximum accepted error of the solution of the linear solver.
Definition linalgparameters.hh:62
Opm::Parameters::LinearSolverVerbosity
Specifies the verbosity of the linear solver.
Definition linalgparameters.hh:71
Opm::Parameters::PreconditionerOrder
The order of the sequential preconditioner.
Definition linalgparameters.hh:74
Opm::Parameters::PreconditionerRelaxation
The relaxation factor of the preconditioner.
Definition linalgparameters.hh:78