Widen rates bitmask to 32 bits.
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
#include <map>
|
||||
#include <stdexcept>
|
||||
#include <string>
|
||||
#include <type_traits>
|
||||
#include <vector>
|
||||
|
||||
namespace Opm {
|
||||
@@ -41,9 +42,7 @@ namespace Opm {
|
||||
*/
|
||||
|
||||
public:
|
||||
using enum_size = uint16_t;
|
||||
|
||||
enum class opt : enum_size {
|
||||
enum class opt : uint32_t {
|
||||
wat = (1 << 0),
|
||||
oil = (1 << 1),
|
||||
gas = (1 << 2),
|
||||
@@ -51,6 +50,8 @@ namespace Opm {
|
||||
solvent = (1 << 4),
|
||||
};
|
||||
|
||||
using enum_size = std::underlying_type< opt >::type;
|
||||
|
||||
/// Query if a value is set.
|
||||
inline bool has( opt ) const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user