Skip to content
Snippets Groups Projects
Commit 1a685845 authored by Louis Gombert's avatar Louis Gombert :speech_balloon:
Browse files

GCG: Warn properly for HTG inputs

parent 0ecbd2ed
No related branches found
No related tags found
No related merge requests found
......@@ -33,6 +33,7 @@ void vtkHyperTreeGridGhostCellsGenerator::PrintSelf(ostream& os, vtkIndent inden
int vtkHyperTreeGridGhostCellsGenerator::FillOutputPortInformation(int, vtkInformation* info)
{
info->Set(vtkDataObject::DATA_TYPE_NAME(), "vtkHyperTreeGrid");
info->Set(vtkDataObject::DATA_TYPE_NAME(), "vtkPartitionedDataSet");
return 1;
}
......
......@@ -190,8 +190,14 @@ int vtkGhostCellsGenerator::GenerateGhostCells(
error = true;
}
if (vtkHyperTreeGrid::SafeDownCast(inputPartition) ||
vtkExplicitStructuredGrid::SafeDownCast(inputPartition))
if (vtkHyperTreeGrid::SafeDownCast(inputPartition))
{
error = true;
vtkErrorMacro(<< "vtkHyperTreeGrid is not supported by this filter. Please use the "
"appropriate vtkHyperTreeGridGhostCellsGenerator filter instead.");
}
if (vtkExplicitStructuredGrid::SafeDownCast(inputPartition))
{
error = true;
vtkErrorMacro(<< "Input data set type " << inputPartition->GetClassName()
......
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