-
Notifications
You must be signed in to change notification settings - Fork 119
Add Aquifer Category #1639
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Aquifer Category #1639
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,6 +23,7 @@ namespace Opm::EclIO { | |
|
|
||
| struct SummaryNode { | ||
| enum class Category { | ||
| Aquifer, | ||
| Well, | ||
| Group, | ||
| Field, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -712,6 +712,7 @@ inline void keywordMISC( SummaryConfig::keyword_list& list, | |
|
|
||
| std::string to_string(const SummaryConfigNode::Category cat) { | ||
| switch( cat ) { | ||
| case SummaryConfigNode::Category::Aquifer: return "Aquifer"; | ||
| case SummaryConfigNode::Category::Well: return "Well"; | ||
| case SummaryConfigNode::Category::Group: return "Group"; | ||
| case SummaryConfigNode::Category::Field: return "Field"; | ||
|
|
@@ -828,6 +829,7 @@ SummaryConfigNode::Category parseKeywordCategory(const std::string& keyword) { | |
| if (is_special(keyword)) { return Cat::Miscellaneous; } | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. None of the keywords checked in
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Until proven otherwise I would say it is like this - i.e. all legal SUMMARY keywords starting with 'A' are aquifer keywords.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Both. Flow does not create any kind of aquifer-related output—neither to the summary nor to the restart files. We have (very) limited support for reading parameters of the Fetkovich analytic model from a restart file—I needed that in a different project—but writing is unsupported at present. There is a lot of work ahead of us before we can reasonably claim to fully support aquifer workflows. Writing restart data for aquifers is on my plate.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Then I will at this time leave |
||
|
|
||
| switch (keyword[0]) { | ||
| case 'A': return Cat::Aquifer; | ||
| case 'W': return Cat::Well; | ||
| case 'G': return Cat::Group; | ||
| case 'F': return Cat::Field; | ||
|
|
@@ -897,6 +899,7 @@ std::string SummaryConfigNode::uniqueNodeKey() const | |
| case SummaryConfigNode::Category::Miscellaneous: | ||
| return this->keyword(); | ||
|
|
||
| case SummaryConfigNode::Category::Aquifer: [[fallthrough]]; | ||
| case SummaryConfigNode::Category::Region: [[fallthrough]]; | ||
| case SummaryConfigNode::Category::Block: | ||
| return this->keyword() + ':' + std::to_string(this->number()); | ||
|
|
@@ -929,6 +932,7 @@ bool operator==(const SummaryConfigNode& lhs, const SummaryConfigNode& rhs) | |
| // Equal if associated to same named entity | ||
| return lhs.namedEntity() == rhs.namedEntity(); | ||
|
|
||
| case SummaryConfigNode::Category::Aquifer: [[fallthrough]]; | ||
| case SummaryConfigNode::Category::Region: [[fallthrough]]; | ||
| case SummaryConfigNode::Category::Block: | ||
| // Equal if associated to same numeric entity | ||
|
|
@@ -964,6 +968,7 @@ bool operator<(const SummaryConfigNode& lhs, const SummaryConfigNode& rhs) | |
| // Ordering determined by namedEntityd entity | ||
| return lhs.namedEntity() < rhs.namedEntity(); | ||
|
|
||
| case SummaryConfigNode::Category::Aquifer: [[fallthrough]]; | ||
| case SummaryConfigNode::Category::Region: [[fallthrough]]; | ||
| case SummaryConfigNode::Category::Block: | ||
| // Ordering determined by numeric entity | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This corrects an oversight where
[[fallthrough]]was originally omitted from this case.