Ensure GUIDRAT is checked when WGRUPCON value is defaulted - #5329
Conversation
…ity function to get potential.
bska
left a comment
There was a problem hiding this comment.
The fall-back to GUIDERAT for defaulted WGRUPCON is okay. I am however not very excited about the new getPotential() function. Potential flow rates are supposed to be an internal implementation detail in the GuideRate class. Can you not use potential rates available elsewhere?
As far as I know, not without something that seems like unnecessary code duplication. It is the potentials at the times guide rates are updated that I'm after, so appears it would require communicating potentials and storing them somewhere else, with very similar setup as for the current guiderates. If you have other ideas, please feel free to point me in the right direction and I'll have a go. |
Okay, understood. The contents of In any case, I really don't like the idea of client code starting to depend on the fact that we have some version of some potential rates stored inside the |
Good point, and that can surely be discussed, but for consistency with what's currently being done for entities where no guide rate value is found I think we should stick to returning the most recent potential (was just a bit imprecise above since I didn't think of this issue...)
Another option could be to propagate |
No description provided.