Flow123d  jenkins-Flow123d-linux-release-multijob-198
field_flag.hh
Go to the documentation of this file.
1 /*
2  * field_flags.hh
3  *
4  * Created on: May 3, 2014
5  * Author: jb
6  */
7 
8 #ifndef FIELD_FLAGS_HH_
9 #define FIELD_FLAGS_HH_
10 
11 #include "system/flag_array.hh"
12 
13 class FieldFlag
14 {
15 public:
17  typedef Flags::Mask Mask;
18 
19  /// Number of bits used by Field itself.
20  static constexpr unsigned int flags_size_ = 3;
21 
22  /// The field is data parameter of the owning equation. (default on)
23  static constexpr Mask equation_input{1};
24  /// The field can be set from input. The key in input field descriptor is declared. (default on)
25  static constexpr Mask declare_input{2};
26  /// The field can output. Is part of generated output selection. (default on)
27  static constexpr Mask allow_output{4};
28  /// A field that is input of its equation and can not read from input, thus must be set by copy.
30 
31  /// A field is part of time term of the equation.
32  static constexpr Mask in_time_term{8};
33  /// A field is part of main "stiffness matrix" of the equation.
34  static constexpr Mask in_main_matrix{16};
35  /// A field is part of the right hand side of the equation.
36  static constexpr Mask in_rhs{32};
37 
38  /// Match result fields. These are never given by input or copy of input.
40 
41  /// Match an output field, that can be also copy of other field.
43 
44 };
45 
46 
47 
48 
49 
50 
51 
52 #endif /* FIELD_FLAGS_HH_ */
static constexpr Mask in_main_matrix
A field is part of main "stiffness matrix" of the equation.
Definition: field_flag.hh:34
static constexpr Mask allow_output
The field can output. Is part of generated output selection. (default on)
Definition: field_flag.hh:27
static constexpr Mask equation_result
Match result fields. These are never given by input or copy of input.
Definition: field_flag.hh:39
static constexpr Mask input_copy
A field that is input of its equation and can not read from input, thus must be set by copy...
Definition: field_flag.hh:29
static constexpr Mask in_time_term
A field is part of time term of the equation.
Definition: field_flag.hh:32
static constexpr Mask equation_external_output
Match an output field, that can be also copy of other field.
Definition: field_flag.hh:42
static constexpr Mask in_rhs
A field is part of the right hand side of the equation.
Definition: field_flag.hh:36
static constexpr unsigned int flags_size_
Number of bits used by Field itself.
Definition: field_flag.hh:20
Flags::Mask Mask
Definition: field_flag.hh:17
FlagArray< FieldFlag > Flags
Definition: field_flag.hh:16
static constexpr Mask equation_input
The field is data parameter of the owning equation. (default on)
Definition: field_flag.hh:23
static constexpr Mask declare_input
The field can be set from input. The key in input field descriptor is declared. (default on) ...
Definition: field_flag.hh:25