Add severity (normal, too large, nan) to failure objects.

This commit is contained in:
Atgeirr Flø Rasmussen
2018-10-23 10:52:34 +02:00
parent 892b24c435
commit 34afb0b254
2 changed files with 14 additions and 3 deletions

View File

@@ -40,10 +40,12 @@ namespace Opm
enum Status { AllGood = 0,
ReservoirFailed = 1 << 0,
WellFailed = 1 << 1 };
enum struct Severity { Normal, TooLarge, NotANumber };
struct ReservoirFailure
{
enum struct Type { Mb, Cnv };
Type type;
Severity severity;
int phase;
int cell_index;
};
@@ -51,6 +53,7 @@ namespace Opm
{
enum struct Type { Mb, CtrlBHP, CtrlTHP, CtrlRate };
Type type;
Severity severity;
int phase;
std::string well_name;
};