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

Method GetBlockProcessId

IO/AMR/vtkAMRBaseReader.cxx:174–185  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

172
173//------------------------------------------------------------------------------
174int vtkAMRBaseReader::GetBlockProcessId(int blockIdx)
175{
176 // If this is reader instance is serial, return Process 0
177 // as the Process ID for the corresponding block.
178 if (!this->IsParallel())
179 {
180 return 0;
181 }
182
183 int N = this->Controller->GetNumberOfProcesses();
184 return (blockIdx % N);
185}
186
187//------------------------------------------------------------------------------
188bool vtkAMRBaseReader::IsBlockMine(int blockIdx)

Callers 1

IsBlockMineMethod · 0.95

Calls 2

IsParallelMethod · 0.95
GetNumberOfProcessesMethod · 0.80

Tested by

no test coverage detected