Skip to content
Snippets Groups Projects
Commit f07046b0 authored by Dennis Gläser's avatar Dennis Gläser
Browse files

Merge branch 'fix/projector-segfault' into 'master'

[fix][projector] Do not insert into empty matrix

See merge request !1627
parents 24a90528 03922b7e
No related branches found
No related tags found
1 merge request!1627[fix][projector] Do not insert into empty matrix
......@@ -245,7 +245,8 @@ makeProjectorPair(const FEBasisDomain& feBasisDomain,
{
const auto dofIdxDomain = domainLocalView.index(i);
const auto domainShapeVal = domainShapeVals[i];
backwardM[dofIdxDomain][dofIdxDomain] += ie*weight*domainShapeVal;
if (doBidirectional)
backwardM[dofIdxDomain][dofIdxDomain] += ie*weight*domainShapeVal;
for (unsigned int j = 0; j < targetLocalBasis.size(); ++j)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment