deal.II version GIT relicensing-6809-ge913b9bb34 2026-09-25 17:20: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
evaluation_flags.h
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) 2020 - 2025 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
14#ifndef dealii_matrix_free_evaluation_flags_h
15#define dealii_matrix_free_evaluation_flags_h
16
17#include <deal.II/base/config.h>
18
20
21
23
24
25
33{
42 {
50 values = 0x1,
54 gradients = 0x2,
58 hessians = 0x4
59 };
60
61
73 {
74 return static_cast<EvaluationFlags>(static_cast<unsigned int>(f1) |
75 static_cast<unsigned int>(f2));
76 }
77
78
79
88 {
89 f1 = f1 | f2;
90 return f1;
91 }
92
93
105 {
106 return static_cast<EvaluationFlags>(static_cast<unsigned int>(f1) &
107 static_cast<unsigned int>(f2));
108 }
109
110
119 {
120 f1 = f1 & f2;
121 return f1;
122 }
123
124} // namespace EvaluationFlags
125
126
128
129#endif
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:38
#define DEAL_II_HOST_DEVICE
Definition config.h:171
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:39
The namespace for the EvaluationFlags enum.
constexpr EvaluationFlags operator&(const EvaluationFlags f1, const EvaluationFlags f2)
constexpr EvaluationFlags & operator&=(EvaluationFlags &f1, const EvaluationFlags f2)
constexpr EvaluationFlags & operator|=(EvaluationFlags &f1, const EvaluationFlags f2)
constexpr EvaluationFlags operator|(const EvaluationFlags f1, const EvaluationFlags f2)