-
Notifications
You must be signed in to change notification settings - Fork 112
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
Compositional well #4334
base: master
Are you sure you want to change the base?
Compositional well #4334
Conversation
jenkins build this please |
// injection streams for compostional STREAM injection using WINJGAS | ||
std::unordered_map<std::string, std::vector<double>> inj_streams; |
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.
Please use map_member<>
. It really is the primary solution to this problem.
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.
Sure. I went back and forth on this and thanks for the suggestion. I will do that.
not very familiar with the design here. Will you explain a little bit what is the difference here for future record?
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.
not very familiar with the design here. Will you explain a little bit what is the difference here for future record?
Sure. The point is that map_member<K,V>
is more or less a map<K, shared_ptr<V>>
with some additional logic on top. This enables sharing data between ScheduleState
objects at different report steps if there is no intervening keyword to add/change the data.
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.
The design looks like V
needs to be a struct containing name()
, which is the key .
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.
Is it okay that I add a member function
void update(const K& key, std::shared_ptr<T> value);
or you think it will break the design.
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.
It looks it might work, but it will be on draft mode for some while until we figure out how things work in the opm-simulators. I will check what Jenkins think about it.
If it does not work later, I will make a StreamComposition struct to make it the same with Well or Group to following the design style.
5f80b49
to
0eb6da9
Compare
jenkins build this please |
11898aa
to
c1cf35e
Compare
26fa8c7
to
e5c5bc1
Compare
e5c5bc1
to
8a1f4cb
Compare
No description provided.