Skip to content
Snippets Groups Projects
Commit bfac0020 authored by Nicolas Vuaille's avatar Nicolas Vuaille
Browse files

Be consistent with which mesh is kept

Composite use mesh from first Timestep. Do the same for non-composite.
parent 103f9e03
No related branches found
No related tags found
No related merge requests found
......@@ -96,7 +96,7 @@ int TestTemporalArrayOperatorFilter(int, char*[])
double range[2];
diff->GetPointData()->GetArray("timeData")->GetRange(range);
if (range[0] != 0 && range[1] != 20)
if (range[0] != 3 && range[1] != 83)
{
std::cerr << "Bad initial range:" << range[0] << ";" << range[1] << endl;
return EXIT_FAILURE;
......
......@@ -275,7 +275,7 @@ vtkDataObject* vtkTemporalArrayOperatorFilter::ProcessDataObject(
// Copy input structure into output
vtkDataObject* outputDataObject = inputData0->NewInstance();
outputDataObject->ShallowCopy(inputData1);
outputDataObject->ShallowCopy(inputData0);
vtkSmartPointer<vtkDataArray> outputArray;
outputArray.TakeReference(this->ProcessDataArray(inputArray0, inputArray1));
......
......@@ -6,6 +6,7 @@
*
* This filter computes a simple operation between two time steps of one
* data array.
* The mesh of the first time step is used.
*
* @sa
* vtkArrayCalulator
......
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