------------------------------------------------------------------------------
| 172 | |
| 173 | //------------------------------------------------------------------------------ |
| 174 | int 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 | //------------------------------------------------------------------------------ |
| 188 | bool vtkAMRBaseReader::IsBlockMine(int blockIdx) |
no test coverage detected