| 1769 | } // vtkNek5000Reader::objectMatchesRequest() |
| 1770 | |
| 1771 | bool vtkNek5000Reader::objectHasExtraData() |
| 1772 | { |
| 1773 | // see if the current object has extra data than was requested |
| 1774 | // return false if object has less than request, otherwise true |
| 1775 | #ifndef NDEBUG |
| 1776 | int my_rank; |
| 1777 | vtkMultiProcessController* ctrl = vtkMultiProcessController::GetGlobalController(); |
| 1778 | if (ctrl != nullptr) |
| 1779 | { |
| 1780 | my_rank = ctrl->GetLocalProcessId(); |
| 1781 | } |
| 1782 | else |
| 1783 | { |
| 1784 | my_rank = 0; |
| 1785 | } |
| 1786 | #endif |
| 1787 | // check the stored variables, if it was requested, but it is not in the current object, return |
| 1788 | // false |
| 1789 | for (int i = 0; i < this->num_vars; i++) |
| 1790 | { |
| 1791 | if (this->GetPointArrayStatus(i) && !this->curObj->vars[i]) |
| 1792 | { |
| 1793 | return (false); |
| 1794 | } |
| 1795 | } |
| 1796 | |
| 1797 | vtkDebugMacro(<< "objectHasExtraData(): my_rank= " << my_rank << " : returning true"); |
| 1798 | return (true); |
| 1799 | } // vtkNek5000Reader::objectHasExtraData() |
| 1800 | |
| 1801 | int vtkNek5000Reader::CanReadFile(const char* fname) |
| 1802 | { |
no test coverage detected