Salome HOME
For the moment MAXIMUM_NUMBER_OF_PIECES can't be removed
[modules/paravis.git] / src / Plugins / ParaMEDCorba / VTKParaMEDFieldClient.cxx
index 5c3025eb612a435dde685501a7333af9e48d4165..31efc71edec8a279ff68887e2cbe334e2b4005c4 100644 (file)
@@ -39,9 +39,10 @@ std::vector<double> ParaMEDMEM2VTK::FillMEDCouplingParaFieldDoubleInstanceFrom(S
       SALOME_MED::MEDCouplingFieldDoubleCorbaInterface_var fieldCorba=SALOME_MED::MEDCouplingFieldDoubleCorbaInterface::_narrow(obj);
       std::vector<double> times;
       vtkDataSet *part=ParaMEDMEM2VTK::BuildFullyFilledFromMEDCouplingFieldDoubleInstance(fieldCorba,times);
-      tmp->SetInputData(part);
+      tmp->AddInputData(part);
       part->Delete();
     }
+  tmp->Update();
   vtkCompositeDataToUnstructuredGridFilter *tmp2=vtkCompositeDataToUnstructuredGridFilter::New();
   tmp2->SetInputData(tmp->GetOutput());
   tmp2->Update();