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_ts.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_ts.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",
42 ts_type,
43 "The string indicating the PETSc TS type.");
44 prm.add_parameter("initial time",
46 "The value for the initial time.");
47 prm.add_parameter("final time",
49 "The value for the final time.");
50 prm.add_parameter("initial step size",
52 "The value for the initial time step.");
53 prm.add_parameter("maximum number of steps",
55 "Maximum number of time steps allowed.");
56 prm.add_parameter(
57 "match final time",
59 "Whether or not to exactly stop at final time or step over it.");
60 prm.leave_subsection();
61
62 prm.enter_subsection("Error control");
63 prm.add_parameter("adaptor type",
65 "The string for the TSAdapt type.");
66 prm.add_parameter("minimum step size",
68 "Minimum time step size allowed.");
69 prm.add_parameter("maximum step size",
71 "Maximum time step size allowed.");
72 prm.add_parameter("absolute error tolerance",
74 "Absolute error tolerance.");
75 prm.add_parameter("relative error tolerance",
77 "Absolute error tolerance.");
78 prm.add_parameter("ignore algebraic lte",
80 "Indicate whether or not to suppress algebraic variables "
81 "in the local truncation error test.");
82 prm.leave_subsection();
83 }
84
85} // namespace PETScWrappers
86
87template class PETScWrappers::TimeStepper<>;
92template class PETScWrappers::TimeStepper<
95
96
97
98# endif // DEAL_II_WITH_PETSC
99#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