My Project
Enums.hpp
1 /*
2  Copyright 2021 Equinor ASA.
3 
4  This file is part of the Open Porous Media project (OPM).
5 
6  OPM is free software: you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  OPM is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with OPM. If not, see <http://www.gnu.org/licenses/>.
18 */
19 
20 #ifndef ACTION_ENUMS_HPP
21 #define ACTION_ENUMS_HPP
22 
23 #include <string>
24 
25 namespace Opm {
26 namespace Action {
27 
28 enum class Logical {
29  AND,
30  OR,
31  END
32 };
33 
34 enum class Comparator {
35  EQUAL,
36  GREATER,
37  LESS,
38  GREATER_EQUAL,
39  LESS_EQUAL,
40  INVALID
41 };
42 
43 
44 Comparator comparator_from_int(int cmp_int);
45 std::string comparator_as_string(Comparator cmp);
46 Logical logic_from_int(int int_logic);
47 
48 }
49 }
50 
51 #endif
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition: Exceptions.hpp:29