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

Function GetDomIn

comp/contact.cpp:18–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16namespace ngcomp
17{
18 inline int GetDomIn(const MeshAccess& ma, const Ngs_Element& el)
19 {
20 if(ma.GetDimension() ==3)
21 return ma.GetNetgenMesh()->GetFaceDescriptor(el.GetIndex()+1).DomainIn();
22 else
23 {
24 auto& seg = ma.GetNetgenMesh()->LineSegments()[el.Nr()];
25 return ma.GetNetgenMesh()->GetEdgeDescriptor(seg.GetIndex()).DomainIn();
26 }
27 }
28
29 // Quadratic approximation of distance to pmaster
30 template<int DIM>

Callers 3

CreateContactPairMethod · 0.85
EvaluateMethod · 0.85
EvaluateMethod · 0.85

Calls 2

GetDimensionMethod · 0.45
NrMethod · 0.45

Tested by

no test coverage detected