Skip to content
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

Make use of named functions to compute secondary variables #1315

Merged
merged 29 commits into from Aug 17, 2016

Conversation

chleh
Copy link
Collaborator

@chleh chleh commented Jul 7, 2016

Follow-up of #1314

TODO

  • docu

@chleh chleh force-pushed the use-named-functions branch 2 times, most recently from 215e763 to 6cd587e Compare July 26, 2016 07:40
@ogsbot
Copy link
Member

ogsbot commented Jul 28, 2016

Jenkins: OGS-6/Linux-PRs-dynamic failed: https://svn.ufz.de:8443/job/OGS-6/job/Linux-PRs-dynamic/655/

@ogsbot
Copy link
Member

ogsbot commented Jul 28, 2016

Jenkins: OGS-6/Linux-PRs failed: https://svn.ufz.de:8443/job/OGS-6/job/Linux-PRs/2431/

@ogsbot
Copy link
Member

ogsbot commented Aug 9, 2016

Jenkins: OGS-6/Mac-PRs failed: https://svn.ufz.de:8443/job/OGS-6/job/Mac-PRs/2349/

@ogsbot
Copy link
Member

ogsbot commented Aug 9, 2016

Jenkins: OGS-6/Linux-PRs failed: https://svn.ufz.de:8443/job/OGS-6/job/Linux-PRs/2484/

@ogsbot
Copy link
Member

ogsbot commented Aug 9, 2016

Jenkins: OGS-6/Linux-PRs-dynamic failed: https://svn.ufz.de:8443/job/OGS-6/job/Linux-PRs-dynamic/707/

@ogsbot
Copy link
Member

ogsbot commented Aug 9, 2016

Jenkins: OGS-6/Gui/Mac-PRs failed: https://svn.ufz.de:8443/job/OGS-6/job/Gui/job/Mac-PRs/2336/

@chleh
Copy link
Collaborator Author

chleh commented Aug 10, 2016

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) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i -> component_id

Copy link
Collaborator Author

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.

@endJunction
Copy link
Member

For discussion: Can the GWF Darcy velocities also be tested as the fct_solid_density in TES? The necessary changes would be only the extra data in the Tests/Data, isn't it?

@chleh
Copy link
Collaborator Author

chleh commented Aug 15, 2016

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);
Copy link
Member

@endJunction endJunction Aug 15, 2016

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:

@endJunction
Copy link
Member

Technically OK. ⏩

@chleh
Copy link
Collaborator Author

chleh commented Aug 17, 2016

Thanks for the review.

@ogsbot
Copy link
Member

ogsbot commented Aug 17, 2016

Jenkins: OGS-6/Mac-PRs failed: https://svn.ufz.de:8443/job/OGS-6/job/Mac-PRs/2427/

@ogsbot
Copy link
Member

ogsbot commented Aug 17, 2016

Jenkins: OGS-6/Gui/Gui-Linux-PRs failed: https://svn.ufz.de:8443/job/OGS-6/job/Gui/job/Gui-Linux-PRs/2508/

@ogsbot
Copy link
Member

ogsbot commented Aug 17, 2016

Jenkins: OGS-6/Linux-PRs failed: https://svn.ufz.de:8443/job/OGS-6/job/Linux-PRs/2563/

@ogsbot
Copy link
Member

ogsbot commented Aug 17, 2016

Jenkins: OGS-6/Linux-PRs-dynamic failed: https://svn.ufz.de:8443/job/OGS-6/job/Linux-PRs-dynamic/786/

@chleh
Copy link
Collaborator Author

chleh commented Aug 17, 2016

Jenkins, test this please.

@chleh chleh merged commit 045c4f2 into ufz:master Aug 17, 2016
@chleh chleh deleted the use-named-functions branch August 17, 2016 08:41
@ogsbot
Copy link
Member

ogsbot commented Jun 19, 2020

OpenGeoSys development has been moved to GitLab.

See this pull request on GitLab.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants