Commit 0453f9df authored by Andrew J. Burns (Cont's avatar Andrew J. Burns (Cont

fixed interlace algorithm for unequal sizes

parent aa51d516
......@@ -798,7 +798,7 @@ XdmfFunction::interlace(shared_ptr<XdmfArray> val1, shared_ptr<XdmfArray> val2)
if (arrayExcess1 > 0) {
returnArray->insert(val1->getSize()+val2->getSize()-arrayExcess1,
val1,
0,
val1->getSize()-arrayExcess1,
arrayExcess1,
1,
1);
......@@ -806,7 +806,7 @@ XdmfFunction::interlace(shared_ptr<XdmfArray> val1, shared_ptr<XdmfArray> val2)
else if (arrayExcess2 > 0) {
returnArray->insert(val1->getSize()+val2->getSize()-arrayExcess2,
val2,
0,
val2->getSize()-arrayExcess2,
arrayExcess2,
1,
1);
......
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