| 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 |
nothing calls this directly
no test coverage detected