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

Method IsBlockMine

IO/AMR/vtkAMRBaseParticlesReader.cxx:162–171  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

160
161//------------------------------------------------------------------------------
162bool vtkAMRBaseParticlesReader::IsBlockMine(int blkIdx)
163{
164 if (!this->IsParallel())
165 {
166 return true;
167 }
168
169 int myRank = this->Controller->GetLocalProcessId();
170 return myRank == this->GetBlockProcessId(blkIdx);
171}
172
173//------------------------------------------------------------------------------
174int vtkAMRBaseParticlesReader::GetBlockProcessId(int blkIdx)

Callers 1

RequestDataMethod · 0.95

Calls 3

IsParallelMethod · 0.95
GetBlockProcessIdMethod · 0.95
GetLocalProcessIdMethod · 0.45

Tested by

no test coverage detected