PRISMS-PF Manual
Loading...
Searching...
No Matches
types.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: © 2025 PRISMS Center at the University of Michigan
2// SPDX-License-Identifier: GNU Lesser General Public Version 2.1
3
4#pragma once
5
6#include <deal.II/matrix_free/evaluation_flags.h>
7
9
10#include <prismspf/config.h>
11
13
14namespace Types
15{
19 using Index = unsigned int;
20
21} // namespace Types
22
23namespace Numbers
24{
28 static const Types::Index invalid_index = static_cast<Types::Index>(-1);
29
33 static constexpr unsigned int max_element_degree = 6;
34
38 static constexpr unsigned int max_subsections = 16;
39
43 static constexpr unsigned int max_saved_solutions = 4;
44
45} // namespace Numbers
46
47namespace Defaults
48{
52 static const Types::Index index = 0;
53
57 static const double tolerance = 1.0e-6;
58
62 static const double mesh_tolerance = 1.0e-15;
63
67 static const unsigned int iterations = 100;
68
72 static const double smoothing_range = 15.0;
73
77 static const unsigned int smoother_degree = 5;
78
82 static const unsigned int eig_cg_n_iterations = 10;
83
84} // namespace Defaults
85
86using EvalFlags = dealii::EvaluationFlags::EvaluationFlags;
87
@ Value
Use value of the variable as a criterion for refinement.
Definition grid_refiner_criterion.h:31
Definition types.h:48
static const double smoothing_range
Default eigenvalue smoothing range for multigrid.
Definition types.h:72
static const unsigned int iterations
Default iterations.
Definition types.h:67
static const Types::Index index
Default field index.
Definition types.h:52
static const double mesh_tolerance
Default mesh tolerance.
Definition types.h:62
static const double tolerance
Default tolerance.
Definition types.h:57
static const unsigned int eig_cg_n_iterations
Default CG iterations to find the maximum eigenvalue for multigrid.
Definition types.h:82
static const unsigned int smoother_degree
Default smoother degree for multigrid.
Definition types.h:77
Definition types.h:24
static constexpr unsigned int max_element_degree
Max element degree.
Definition types.h:33
static const Types::Index invalid_index
Invalid field index.
Definition types.h:28
static constexpr unsigned int max_saved_solutions
Max number of saved solutions.
Definition types.h:43
static constexpr unsigned int max_subsections
Max number of subsections.
Definition types.h:38
Definition conditional_ostreams.cc:20
Definition types.h:15
unsigned int Index
Type for field indices.
Definition types.h:19
dealii::EvaluationFlags::EvaluationFlags EvalFlags
Definition types.h:86