-
Notifications
You must be signed in to change notification settings - Fork 239
Make use of named functions to compute secondary variables #1315
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
Conversation
215e763
to
6cd587e
Compare
6cd587e
to
bd5ba05
Compare
Jenkins: OGS-6/Linux-PRs-dynamic failed: https://svn.ufz.de:8443/job/OGS-6/job/Linux-PRs-dynamic/655/ |
Jenkins: OGS-6/Linux-PRs failed: https://svn.ufz.de:8443/job/OGS-6/job/Linux-PRs/2431/ |
bd5ba05
to
7d60c01
Compare
6a0ebbe
to
57fe4d0
Compare
Jenkins: OGS-6/Mac-PRs failed: https://svn.ufz.de:8443/job/OGS-6/job/Mac-PRs/2349/ |
Jenkins: OGS-6/Linux-PRs failed: https://svn.ufz.de:8443/job/OGS-6/job/Linux-PRs/2484/ |
Jenkins: OGS-6/Linux-PRs-dynamic failed: https://svn.ufz.de:8443/job/OGS-6/job/Linux-PRs-dynamic/707/ |
Jenkins: OGS-6/Gui/Mac-PRs failed: https://svn.ufz.de:8443/job/OGS-6/job/Gui/job/Mac-PRs/2336/ |
Jenkins, test this please. |
// TODO maybe fill args via callback mechanism or remove this class entirely. | ||
// Caution: The order of args will be the same as the order of the | ||
// components in the global vector! | ||
for (std::size_t i = 0; i < n_args; ++i) { |
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.
i -> component_id
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.
I'd like to keep it as it is. The relation between number of arguments and number of components should be clear from the comment and the assertion.
For discussion: Can the GWF Darcy velocities also be tested as the |
Yes, they can. In fact, the Darcy velocities could have been tested ever since. They don't need named functions. |
} | ||
if (already_output.find(external_variable_name) != already_output.end()) | ||
continue; | ||
already_output.insert(external_variable_name); |
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.
Just technical thing:
Instead of searching and inserting, you could use the return value of std::map::insert, which is a pair of iterator and boolean, the latter indicating success/failure of the insertion. :white_check_mark:
Technically OK. ⏩ |
* context: class -> struct * global vector from named fct: result_cache -> result * cached 2ndary var: fixed member name
9d098fa
to
c6bbe42
Compare
Thanks for the review. |
Jenkins: OGS-6/Mac-PRs failed: https://svn.ufz.de:8443/job/OGS-6/job/Mac-PRs/2427/ |
Jenkins: OGS-6/Gui/Gui-Linux-PRs failed: https://svn.ufz.de:8443/job/OGS-6/job/Gui/job/Gui-Linux-PRs/2508/ |
Jenkins: OGS-6/Linux-PRs failed: https://svn.ufz.de:8443/job/OGS-6/job/Linux-PRs/2563/ |
Jenkins: OGS-6/Linux-PRs-dynamic failed: https://svn.ufz.de:8443/job/OGS-6/job/Linux-PRs-dynamic/786/ |
Jenkins, test this please. |
OpenGeoSys development has been moved to GitLab. |
Follow-up of #1314
TODO