-
Notifications
You must be signed in to change notification settings - Fork 239
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
[PL] remove mutable member variables in Parameter classes #2337
Conversation
This looks good. Though I tested it and it has some overhead now due to copy the vector resulting in 5% or so performance drop. Easily fixable (for most cases) by introducing an I didn't look into the reasons for the few failing ctests. |
@endJunction In current codes, there are some cases using a returned value of
UPDATE: It seems the problem happened because of |
cc60d57
to
b397e98
Compare
SpatialPosition const& pos) const override | ||
{ | ||
auto const& tup = (*_parameter)(t, pos); | ||
auto const scaling = _curve.getValue(t); | ||
|
||
auto const num_comp = _parameter->getNumberOfComponents(); | ||
std::vector<T> cache(num_comp); |
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.
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 numbers are not very reliable because of changing load while tests run.
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.
Looks good except a little slow down in performance.
OpenGeoSys development has been moved to GitLab. |
as suggested in #2325