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