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

Method GetVariableID

IO/Exodus/vtkExodusIIReader.cxx:6460–6491  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

6458
6459//------------------------------------------------------------------------------
6460int vtkExodusIIReader::GetVariableID(const char* type, const char* name)
6461{
6462 int otyp = this->GetObjectTypeFromName(type);
6463 if (otyp < 0)
6464 {
6465 return 0;
6466 }
6467 switch (otyp)
6468 {
6469 case NODAL:
6470 case EDGE_BLOCK:
6471 case FACE_BLOCK:
6472 case ELEM_BLOCK:
6473 case NODE_SET:
6474 case EDGE_SET:
6475 case FACE_SET:
6476 case SIDE_SET:
6477 case ELEM_SET:
6478 return this->GetObjectArrayIndex(otyp, name);
6479 case ASSEMBLY:
6480 return this->GetAssemblyArrayID(name);
6481 case HIERARCHY:
6482 return -1; // FIXME: There is no this->GetHierarchyArrayID( name ) and it's not clear there
6483 // should be.
6484 case MATERIAL:
6485 return this->GetMaterialArrayID(name);
6486 case PART:
6487 return this->GetPartArrayID(name);
6488 default:
6489 return -1;
6490 }
6491}
6492
6493int vtkExodusIIReader::GetTimeSeriesData(
6494 int ID, const char* vName, const char* vType, vtkFloatArray* result)

Callers 1

IsValidVariableMethod · 0.95

Calls 5

GetObjectTypeFromNameMethod · 0.95
GetObjectArrayIndexMethod · 0.95
GetAssemblyArrayIDMethod · 0.95
GetMaterialArrayIDMethod · 0.95
GetPartArrayIDMethod · 0.95

Tested by

no test coverage detected