| 16 | namespace 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> |
no test coverage detected