Flow123d  jenkins-Flow123d-windows32-release-multijob-51
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 cna not read from input, thus muzt 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 non-result fields, that are data fields of an equation.
40 };
41 
42 
43 
44 
45 
46 
47 
48 #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 non-result fields, that are data fields of an equation.
Definition: field_flag.hh:39
static constexpr Mask input_copy
A field that is input of its equation and cna not read from input, thus muzt 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 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