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

Method IsRegionMine

Filters/AMR/vtkAMRResampleFilter.cxx:1191–1200  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1189
1190//------------------------------------------------------------------------------
1191bool vtkAMRResampleFilter::IsRegionMine(int regionIdx)
1192{
1193 if (!this->IsParallel())
1194 {
1195 return true;
1196 }
1197
1198 int myRank = this->Controller->GetLocalProcessId();
1199 return myRank == this->GetRegionProcessId(regionIdx);
1200}
1201
1202//------------------------------------------------------------------------------
1203bool vtkAMRResampleFilter::IsParallel()

Callers 2

ExtractRegionMethod · 0.95
IsBlockWithinBoundsMethod · 0.95

Calls 3

IsParallelMethod · 0.95
GetRegionProcessIdMethod · 0.95
GetLocalProcessIdMethod · 0.45

Tested by

no test coverage detected