Skip to content
Snippets Groups Projects
Commit 77515d45 authored by Nathan's avatar Nathan
Browse files

Check for the global arrays by name if not set.

parent 92fc99dc
No related branches found
No related tags found
No related merge requests found
......@@ -813,6 +813,10 @@ int vtkExodusIIWriter::CheckInputArrays ()
// Trying to find global element id
vtkDataArray *da = cd->GetGlobalIds();
if (!da)
{ // try finding the array explicitly named
da = cd->GetArray ("GlobalElementId");
}
if (da)
{
vtkIdTypeArray *ia = vtkIdTypeArray::SafeDownCast(da);
......@@ -829,8 +833,13 @@ int vtkExodusIIWriter::CheckInputArrays ()
}
}
// Trying to find global node id
da = pd->GetGlobalIds();
if (!da)
{ // try finding the array explicitly named
da = pd->GetArray ("GlobalNodeId");
}
if (da)
{
vtkIdTypeArray *ia = vtkIdTypeArray::SafeDownCast(da);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment