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

Method GetMemoryUsage

comp/bilinearform.cpp:1683–1697  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1681
1682
1683 Array<MemoryUsage> BilinearForm :: GetMemoryUsage () const
1684 {
1685 Array<MemoryUsage> mu;
1686 if (low_order_bilinear_form)
1687 mu = low_order_bilinear_form -> GetMemoryUsage ();
1688
1689 int olds = mu.Size();
1690
1691 for (int i = 0; i < mats.Size(); i++)
1692 if (mats[i]) mu += mats[i]->GetMemoryUsage ();
1693
1694 for (int i = olds; i < mu.Size(); i++)
1695 mu[i].AddName (string(" bf ")+GetName());
1696 return mu;
1697 }
1698
1699 AutoVector BilinearForm :: CreateRowVector() const
1700 {

Callers

nothing calls this directly

Calls 4

GetNameFunction · 0.85
AddNameMethod · 0.80
GetMemoryUsageMethod · 0.45
SizeMethod · 0.45

Tested by

no test coverage detected