MCPcopy Create free account
hub / github.com/Kitware/VTK / GetBlockProcessId

Method GetBlockProcessId

IO/AMR/vtkAMRBaseParticlesReader.cxx:174–183  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

172
173//------------------------------------------------------------------------------
174int vtkAMRBaseParticlesReader::GetBlockProcessId(int blkIdx)
175{
176 if (!this->IsParallel())
177 {
178 return 0;
179 }
180
181 int N = this->Controller->GetNumberOfProcesses();
182 return (blkIdx % N);
183}
184
185//------------------------------------------------------------------------------
186bool vtkAMRBaseParticlesReader::CheckLocation(double x, double y, double z)

Callers 1

IsBlockMineMethod · 0.95

Calls 2

IsParallelMethod · 0.95
GetNumberOfProcessesMethod · 0.80

Tested by

no test coverage detected