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

Method GetMassOperator

comp/l2hofespace.cpp:1514–1530  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1512#include "applymassl2.hpp"
1513
1514 shared_ptr<BaseMatrix> L2HighOrderFESpace ::
1515 GetMassOperator (shared_ptr<CoefficientFunction> rho,
1516 shared_ptr<Region> defon,
1517 LocalHeap & lh) const
1518 {
1519 bool curved = false;
1520 for (auto el : ma->Elements(VOL))
1521 if (el.is_curved) curved = true;
1522 if ( (!rho || rho->ElementwiseConstant()) && all_dofs_together && order_policy == CONSTANT_ORDER && !curved)
1523 {
1524 return make_shared<ApplyMassL2Const>
1525 (dynamic_pointer_cast<FESpace>(const_cast<L2HighOrderFESpace*>(this)->shared_from_this()),
1526 rho, defon, lh);
1527 }
1528
1529 return FESpace::GetMassOperator(rho, defon, lh);
1530 }
1531
1532 shared_ptr<BaseMatrix>
1533 L2HighOrderFESpace :: CreateMassOperator (shared_ptr<CoefficientFunction> rho,

Callers

nothing calls this directly

Calls 15

ElementsMethod · 0.80
VerticesMethod · 0.80
GetMeasureMethod · 0.80
GetJacobianMethod · 0.80
ElementsFunction · 0.70
TransFunction · 0.50
L2NormFunction · 0.50
sqrtFunction · 0.50
shared_from_thisMethod · 0.45
ElementTypeMethod · 0.45
OrderMethod · 0.45
SizeMethod · 0.45

Tested by

no test coverage detected