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

Method GetGlobalDofNrs

comp/numberfespace.cpp:140–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138
139
140 void NumberFESpace :: GetGlobalDofNrs (int gnr, Array<int> & dnums) const
141 {
142 /** If parallel, there is one global DOF shared by all ranks except rank 0.
143 If not parallel, there is also one DOF. **/
144 if ( IsParallel() && (GetParallelDofs()->GetCommunicator().Size() > 1) && (GetParallelDofs()->GetCommunicator().Rank() == 0) )
145 { dnums.SetSize0(); }
146 else
147 { dnums.SetSize(1); dnums[0] = 0; }
148 }
149
150
151 static RegisterFESpace<NumberFESpace> init ("number");

Callers

nothing calls this directly

Calls 4

GetParallelDofsFunction · 0.70
SizeMethod · 0.45
GetCommunicatorMethod · 0.45
SetSizeMethod · 0.45

Tested by

no test coverage detected