Commit e7f053a4 authored by Sankhesh Jhaveri's avatar Sankhesh Jhaveri 💬
Browse files

Fix crash in exodus writer when writing datasets

vtkExodusIIWriter was crashing if the dataset is a generic
vtkDataSet or any of its subclasses since there is no mechanism
for providing a name for the dataset. This change fixes this by
assigning it an arbitary name "block".
parent 7b7175dd
...@@ -540,6 +540,11 @@ int vtkExodusIIWriter::FlattenHierarchy (vtkDataObject* input, const char *name, ...@@ -540,6 +540,11 @@ int vtkExodusIIWriter::FlattenHierarchy (vtkDataObject* input, const char *name,
changed = true; changed = true;
} }
this->NewFlattenedInput.push_back (output); this->NewFlattenedInput.push_back (output);
if (!name)
// Setting an arbitary name for datasets that have not been assigned one.
name = "block";
this->NewFlattenedNames.push_back (name); this->NewFlattenedNames.push_back (name);
} }
else else
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment