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

Method IntegrationRuleTP

fem/intrule.cpp:1579–1597  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1577
1578 template <>
1579 IntegrationRuleTP<1> :: IntegrationRuleTP (const ElementTransformation & eltrans,
1580 IVec<1> vorder, bool compute_duffy, bool compute_points)
1581 {
1582 int order = vorder[0];
1583 irx = &SelectIntegrationRule (ET_SEGM, order);
1584 int nip = irx->GetNIP();
1585
1586 SetSize(nip);
1587 dxdxi_duffy.SetSize(nip);
1588
1589 for (int i = 0; i < irx->GetNIP(); i++)
1590 {
1591 (*this)[i] = IntegrationPoint ((*irx)[i](0), 0, 0,
1592 (*irx)[i].Weight());
1593 }
1594
1595 for (int i = 0; i < nip; i++)
1596 dxdxi_duffy[i] = 1;
1597 }
1598
1599
1600 template <>

Callers

nothing calls this directly

Calls 12

SetSizeFunction · 0.85
ToStringFunction · 0.85
GetElementNameFunction · 0.85
GetEdgesFunction · 0.85
swapFunction · 0.85
GetFacesFunction · 0.85
GetSortMethod · 0.80
AddIntegrationPointMethod · 0.80
IntegrationPointClass · 0.70
GetNIPMethod · 0.45
SetSizeMethod · 0.45
WeightMethod · 0.45

Tested by

no test coverage detected