------------------------------------------------------------------------------ Similar to above, but returns true only if the calling process is the first rank in the readerRanks vector. (This function exists because much of the file metadata is read by a single rank and broadcast to all the others.)
| 708 | // rank in the readerRanks vector. (This function exists because much of the |
| 709 | // file metadata is read by a single rank and broadcast to all the others.) |
| 710 | bool vtkPNetCDFPOPReader::IsFirstReaderRank() |
| 711 | { |
| 712 | if (this->Internals->ReaderRanks.empty()) |
| 713 | { |
| 714 | return false; // sanity check |
| 715 | } |
| 716 | |
| 717 | int rank = this->Controller->GetLocalProcessId(); |
| 718 | return (rank == this->Internals->ReaderRanks[0]); |
| 719 | } |
| 720 | //------------------------------------------------------------------------------ |
| 721 | // |
| 722 | void vtkPNetCDFPOPReader::SetController(vtkMPIController* controller) |
no test coverage detected