]> SALOME platform Git repositories - modules/paravis.git/blobdiff - src/Plugins/ParaMEDCorba/VTKParaMEDFieldClient.cxx
Salome HOME
Work around to solve SIGSEGV in test19.
[modules/paravis.git] / src / Plugins / ParaMEDCorba / VTKParaMEDFieldClient.cxx
index 80e3b0af32f8d65357fbf5add88a0c3f1c3c05d0..2f1970df939ffb3b358b3d4ac0d336bd09f11395 100644 (file)
@@ -1,9 +1,9 @@
-// Copyright (C) 2010-2012  CEA/DEN, EDF R&D
+// Copyright (C) 2010-2015  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 // License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
 //
 // This library is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -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();