Inetrnalize segment type in proper enum

This commit is contained in:
Joakim Hove
2020-02-12 14:16:52 +01:00
parent f80160e6c0
commit e2b58cecda
4 changed files with 53 additions and 2 deletions

View File

@@ -36,6 +36,7 @@ namespace Opm {
enum class SegmentType {
REGULAR,
SICD,
AICD, // Not really supported - just included to complete the enum
VALVE,
};
@@ -64,6 +65,8 @@ namespace Opm {
bool dataReady() const;
SegmentType segmentType() const;
int ecl_type_id() const;
void setVolume(const double volume_in);
void setDepthAndLength(const double depth_in, const double length_in);
@@ -72,6 +75,7 @@ namespace Opm {
void addInletSegment(const int segment_number);
static double invalidValue();
static SegmentType type_from_int(int ecl_id);
bool operator==( const Segment& ) const;
bool operator!=( const Segment& ) const;