deal.II version GIT relicensing-6842-g793a97d2aa 2026-10-02 14:00:01+00:00
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Loading...
Searching...
No Matches
petsc_snes.cc
Go to the documentation of this file.
1// -----------------------------------------------------------------------------
2//
3// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception OR LGPL-2.1-or-later
4// Copyright (C) 2023 - 2026 by the deal.II authors
5//
6// This file is part of the deal.II library.
7//
8// Detailed license information governing the source code and contributions
9// can be found in LICENSE.md and CONTRIBUTING.md at the top level directory.
10//
11// -----------------------------------------------------------------------------
12
13#ifndef DOXYGEN
14
15# include <deal.II/base/config.h>
16
17# ifdef DEAL_II_WITH_PETSC
18
20# include <deal.II/lac/petsc_snes.templates.h>
21
22
23# endif // DEAL_II_WITH_PETSC
24#endif
25
27
28#ifndef DOXYGEN
29# ifdef DEAL_II_WITH_PETSC
30
31namespace PETScWrappers
32{
33 void
35 {
36 prm.enter_subsection("Running parameters");
37 prm.add_parameter(
38 "options prefix",
40 "The string indicating the options prefix for command line customization.");
41 prm.add_parameter("solver type",
43 "The string indicating the PETSc SNES type.");
44 prm.add_parameter("linesearch type",
46 "The string indicating the PETSc linesearch type.");
47 prm.add_parameter("absolute error tolerance",
49 "Absolute error tolerance.");
50 prm.add_parameter("relative error tolerance",
52 "Relative error tolerance.");
53 prm.add_parameter("step tolerance", step_tolerance, "Step tolerance.");
54 prm.add_parameter("maximum iterations",
56 "Maximum number of iterations allowed.");
57 prm.add_parameter("maximum function evaluations",
59 "Maximum number of function evaluations allowed.");
60 prm.leave_subsection();
61 }
62
63} // namespace PETScWrappers
64
73
74
75
76# endif // DEAL_II_WITH_PETSC
77#endif
void add_parameters(ParameterHandler &prm)
void add_parameter(const std::string &entry, ParameterType &parameter, const std::string &documentation="", const Patterns::PatternBase &pattern= *Patterns::Tools::Convert< ParameterType >::to_pattern(), const bool has_to_be_set=false)
void enter_subsection(const std::string &subsection, const bool create_path_if_needed=true)
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:38
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:39