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

Method SetFacet

comp/globalinterfacespace.cpp:221–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219 using INTERFACEFE = InterfaceFE;
220
221 void SetFacet(int nr, InterfaceFE* fe)
222 {
223 int old_size = facets.Size();
224 if (nr+1 > old_size)
225 {
226 facets.SetSize(nr+1);
227 for(auto i : Range(old_size, nr))
228 facets[i] = nullptr;
229 }
230 facets[nr] = fe;
231 }
232 InterfaceFE* GetFacet(int nr) const
233 {
234 if(facets.Size() <= nr) return nullptr;

Callers 4

ApplyYElementMatrixMethod · 0.80
ApplyFacetMatrixMethod · 0.80
ApplyXElementMatrixMethod · 0.80

Calls 3

RangeFunction · 0.50
SizeMethod · 0.45
SetSizeMethod · 0.45

Tested by

no test coverage detected