20 #ifndef OPM_KEYWORDS_HPP 21 #define OPM_KEYWORDS_HPP 27 namespace Fieldprops {
32 std::optional<std::string> unit = std::nullopt;
33 std::optional<T> scalar_init = std::nullopt;
34 bool multiplier =
false;
50 mutable std::size_t num_value = 1;
54 return this->unit == other.unit &&
55 this->scalar_init == other.scalar_init &&
56 this->multiplier == other.multiplier &&
57 this->top == other.top &&
58 this->global == other.
global &&
59 this->num_value == other.num_value;
63 this->scalar_init = init_value;
67 keyword_info<T>& unit_string(
const std::string& unit_string) {
68 this->unit = unit_string;
72 keyword_info<T>& distribute_top(
bool dtop) {
77 keyword_info<T>& mult(
bool m) {
82 keyword_info<T>& global_kw(
bool g) {
85 this->local_in_schedule =
false;
89 keyword_info<T>& global_kw_until_edit() {
91 this->local_in_schedule =
true;
94 const keyword_info<T>& num_value_per_cell(
const std::size_t n)
const {
106 #endif //OPM_KEYWORDS_HPP bool global
Whether a keyword is global.
Definition: Keywords.hpp:40
bool local_in_schedule
Supply global storage but remove it once the SCHEDULE is executed.
Definition: Keywords.hpp:44
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition: Exceptions.hpp:30
Definition: Keywords.hpp:31