| 4959 | } |
| 4960 | |
| 4961 | const char* vtkExodusIIReaderPrivate::GetObjectArrayName(int otyp, int i) |
| 4962 | { |
| 4963 | std::map<int, std::vector<ArrayInfoType>>::iterator it = this->ArrayInfo.find(otyp); |
| 4964 | if (it != this->ArrayInfo.end()) |
| 4965 | { |
| 4966 | int N = (int)it->second.size(); |
| 4967 | if (i < 0 || i >= N) |
| 4968 | { |
| 4969 | vtkDebugMacro("You requested array " << i << " in a collection of only " << N << " arrays."); |
| 4970 | return nullptr; |
| 4971 | } |
| 4972 | return it->second[i].Name.c_str(); |
| 4973 | } |
| 4974 | vtkDebugMacro("Could not find collection of arrays for objects of type " |
| 4975 | << otyp << " (" << objtype_names[this->GetObjectTypeIndexFromObjectType(otyp)] << ")."); |
| 4976 | return nullptr; |
| 4977 | } |
| 4978 | |
| 4979 | int vtkExodusIIReaderPrivate::GetNumberOfObjectArrayComponents(int otyp, int i) |
| 4980 | { |