-
Notifications
You must be signed in to change notification settings - Fork 116
Check if a group has a choke #4622
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
base: master
Are you sure you want to change the base?
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 |
---|---|---|
|
@@ -329,6 +329,7 @@ namespace Opm { | |
GTNode groupTree(std::size_t report_step) const; | ||
GTNode groupTree(const std::string& root_node, std::size_t report_step) const; | ||
const Group& getGroup(const std::string& groupName, std::size_t timeStep) const; | ||
bool hasChoke(const std::string& groupName, std::size_t timeStep) const; | ||
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. I'd probably use a different parameter name here, since the predicate typically applies to a node named in the (extended) network. While groups may indeed be network nodes, not all network nodes are expected to be groups in this case. Maybe 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. Thanks @bska. I was trying to fix the label but could not change it myself which I should be able to do, right? 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.
You need "triage" privileges in the repository in order to set/change PR labels. At the moment, "triage" is effectively the same as "administrator" so only repository administrators have that ability. It's possible that we'll revise the PR labelling policy in light of this fact. 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.
From the downstream PR, it looks like the function is to check whether a group is also a choke node in a network. Maybe 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. Whether or not something is a choke is inherently a node property, since this is governed by item 3 of the 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. @plgbrts , you changed to use |
||
|
||
std::optional<std::size_t> first_RFT() const; | ||
/* | ||
|
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.
When reviewing the downstream PR, I saw there is the following function,
Does this function overlap with the new function introduced here?
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.
Kind of. This particular function exists for the "standard network" model (
GRUPNET
keyword).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.
But it looks like updated in the function
handleNODEPROP()
, which is for extended network.Potentially we can reuse
as_choke()
function instead of introducing a new one?