MCPcopy Create free account
hub / github.com/NGSolve/ngsolve / Assemble

Method Assemble

comp/contact.cpp:1483–1495  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1481 }
1482
1483 void ContactIntegrator2 :: Assemble(std::function<void(FlatArray<DofId>,FlatArray<DofId>,FlatMatrix<double>,ElementId,LocalHeap&)> addelmat, LocalHeap& lh)
1484 {
1485 Array<DofId> dnums;
1486 for (auto& el : elements)
1487 {
1488 HeapReset hr(lh);
1489 el->GetDofNrs(dnums);
1490 FlatMatrix<double> elmat(dnums.Size(), dnums.Size(), lh);
1491 el->CalcElementMatrix(elmat, lh);
1492
1493 addelmat(dnums, dnums, elmat, 0, lh);
1494 }
1495 }
1496
1497
1498

Callers

nothing calls this directly

Calls 3

GetDofNrsMethod · 0.45
SizeMethod · 0.45
CalcElementMatrixMethod · 0.45

Tested by

no test coverage detected