Commit bc70fd1c authored by Felix Gruber's avatar Felix Gruber

don't resize localVector in copyToLocalVector

First of all, it is misleading that a function called copy does a
resize. Second, the resize is redundant in all but one calls of this
function in our codebase. And third, it doesn't work when passing an
iterator as the target of the copy operation. This means that the code
in refinementinterpolation.hh did not work after commit
parent b74728f3
Pipeline #15558 passed with stage
in 25 minutes and 20 seconds
......@@ -87,6 +87,7 @@ public:
void bind(const Element& element)
copyToLocalVector(globalFunction_.dofs(), localDoFs_, localBasisView_);
......@@ -87,8 +87,6 @@ template<class LocalView,
void copyToLocalVector(const GlobalVector& globalVector,
LocalVector& localVector,
LocalView&& localView) {
[&](size_t j, auto gj) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment