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

Method Range

linalg/paralleldofs.cpp:129–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127 }
128
129 shared_ptr<ParallelDofs> ParallelDofs :: Range (IntRange range) const
130 {
131 Array<size_t> cnt(range.Size());
132 for (auto k : range)
133 cnt[k-range.First()] = GetDistantProcs(k).Size();
134
135 Table<int> tab(cnt);
136
137 for(auto k : range)
138 tab[k-range.First()] = GetDistantProcs(k);
139
140 return make_shared<ParallelDofs>(this->GetCommunicator(), std::move(tab));
141 }
142
143
144 void ParallelDofs :: EnumerateGlobally (shared_ptr<BitArray> freedofs,

Callers

nothing calls this directly

Calls 4

GetDistantProcsFunction · 0.85
SizeMethod · 0.45
FirstMethod · 0.45
GetCommunicatorMethod · 0.45

Tested by

no test coverage detected