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

Method GetDofNrs

comp/tpfes.cpp:291–305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

289 }
290
291 void TPHighOrderFESpace::GetDofNrs(ngfem::ElementId ei, ngstd::Array<int>& dnums) const
292 {
293 dnums.SetSize(0);
294 if(ei.VB() != VOL)
295 return;
296 ArrayMem<int,2> indices(2);
297 ArrayMem<int,100> dnumsx, dnumsy;
298 GetIndices(ei.Nr(),indices);
299 space_x->GetDofNrs(ElementId(indices[0]),dnumsx);
300 Space(indices[0])->GetDofNrs(ElementId(indices[1]),dnumsy);
301 dnums.SetSize(dnumsx.Size()*dnumsy.Size());
302 for(int i=0,ii=0;i<dnumsx.Size();i++)
303 for(int j=0;j<dnumsy.Size();j++,ii++)
304 dnums[ii] = Space(indices[0])->GetNDof()*dnumsx[i]+dnumsy[j];
305 }
306
307 void TPHighOrderFESpace::GetSliceDofNrs(ngfem::ElementId ei, int direction, ngstd::Array<int>& dnums,LocalHeap & lh) const
308 {

Callers 5

ReduceToXSpaceMethod · 0.45
ProlongateFromXSpaceMethod · 0.45
GetSliceDofNrsMethod · 0.45
Transfer2StdMeshFunction · 0.45
Transfer2TPMeshFunction · 0.45

Calls 7

GetIndicesFunction · 0.85
ElementIdClass · 0.85
SetSizeMethod · 0.45
VBMethod · 0.45
NrMethod · 0.45
SizeMethod · 0.45
GetNDofMethod · 0.45

Tested by

no test coverage detected