]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
spns #26344 Patch for VTK to fix delegateToVtk option of SMESH - rename patch
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Thu, 16 Sep 2021 11:41:14 +0000 (13:41 +0200)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Thu, 16 Sep 2021 11:41:14 +0000 (13:41 +0200)
products/patches/paraview.0019-VTK-OpenMP.patch [deleted file]
products/patches/paraview.0019-spns-26344-VTK-OpenMP.patch [new file with mode: 0644]

diff --git a/products/patches/paraview.0019-VTK-OpenMP.patch b/products/patches/paraview.0019-VTK-OpenMP.patch
deleted file mode 100644 (file)
index 41f72a2..0000000
+++ /dev/null
@@ -1,75 +0,0 @@
-diff -Naur ParaView-5.9.0_ref/VTK/Filters/Geometry/vtkGeometryFilter.cxx ParaView-5.9.0/VTK/Filters/Geometry/vtkGeometryFilter.cxx
---- ParaView-5.9.0_ref/VTK/Filters/Geometry/vtkGeometryFilter.cxx      2021-09-16 13:17:47.022010882 +0200
-+++ ParaView-5.9.0/VTK/Filters/Geometry/vtkGeometryFilter.cxx  2021-09-16 13:21:51.054384099 +0200
-@@ -448,6 +448,71 @@
-     this->ICellIds.TakeReference(vtkIdList::New());
-     this->Coords.TakeReference(vtkPoints::New());
-   }
-+  
-+  LocalDataType(const LocalDataType& other)
-+  {
-+    this->ThreadId = other.ThreadId;
-+
-+    this->Verts = other.Verts;
-+    this->Lines = other.Lines;
-+    this->Polys = other.Polys;
-+    this->Strips = other.Strips;
-+
-+    this->VertsConnOffset = other.VertsConnOffset;
-+    this->VertsOffset = other.VertsOffset;
-+    this->LinesConnOffset = other.LinesConnOffset;
-+    this->LinesOffset = other.LinesOffset;
-+    this->PolysConnOffset = other.PolysConnOffset;
-+    this->PolysOffset = other.PolysOffset;
-+    this->StripsConnOffset = other.StripsConnOffset;
-+    this->StripsOffset = other.StripsOffset;
-+
-+    this->PointMap = other.PointMap;
-+    // These are here to have a different allocation for each threads
-+    this->Cell.TakeReference(vtkGenericCell::New());
-+    this->CellIds.TakeReference(vtkIdList::New());
-+    this->IPts.TakeReference(vtkIdList::New());
-+    this->ICellIds.TakeReference(vtkIdList::New());
-+    this->Coords.TakeReference(vtkPoints::New());
-+  }
-+
-+  LocalDataType& operator=(const LocalDataType& other)
-+  {
-+    if (this != &other)
-+    {
-+      LocalDataType tmp = LocalDataType(other);
-+      this->Swap(tmp);
-+    }
-+    return *this;
-+  }
-+
-+  void Swap(LocalDataType& other)
-+  {
-+    using std::swap; // the compiler will use custom swap for members if it exists
-+
-+    swap(this->Verts, other.Verts);
-+    swap(this->Lines, other.Lines);
-+    swap(this->Polys, other.Polys);
-+    swap(this->Strips, other.Strips);
-+
-+    swap(this->VertsConnOffset, other.VertsConnOffset);
-+    swap(this->VertsOffset, other.VertsOffset);
-+    swap(this->LinesConnOffset, other.LinesConnOffset);
-+    swap(this->LinesOffset, other.LinesOffset);
-+    swap(this->PolysConnOffset, other.PolysConnOffset);
-+    swap(this->PolysOffset, other.PolysOffset);
-+    swap(this->StripsConnOffset, other.StripsConnOffset);
-+    swap(this->StripsOffset, other.StripsOffset);
-+
-+    swap(this->PointMap, other.PointMap);
-+    swap(this->Cell, other.Cell);
-+    swap(this->CellIds, other.CellIds);
-+    swap(this->IPts, other.IPts);
-+    swap(this->ICellIds, other.ICellIds);
-+    swap(this->Coords, other.Coords);
-+  }
-+
-+
-   void SetPointMap(vtkIdType* ptMap)
-   {
diff --git a/products/patches/paraview.0019-spns-26344-VTK-OpenMP.patch b/products/patches/paraview.0019-spns-26344-VTK-OpenMP.patch
new file mode 100644 (file)
index 0000000..41f72a2
--- /dev/null
@@ -0,0 +1,75 @@
+diff -Naur ParaView-5.9.0_ref/VTK/Filters/Geometry/vtkGeometryFilter.cxx ParaView-5.9.0/VTK/Filters/Geometry/vtkGeometryFilter.cxx
+--- ParaView-5.9.0_ref/VTK/Filters/Geometry/vtkGeometryFilter.cxx      2021-09-16 13:17:47.022010882 +0200
++++ ParaView-5.9.0/VTK/Filters/Geometry/vtkGeometryFilter.cxx  2021-09-16 13:21:51.054384099 +0200
+@@ -448,6 +448,71 @@
+     this->ICellIds.TakeReference(vtkIdList::New());
+     this->Coords.TakeReference(vtkPoints::New());
+   }
++  
++  LocalDataType(const LocalDataType& other)
++  {
++    this->ThreadId = other.ThreadId;
++
++    this->Verts = other.Verts;
++    this->Lines = other.Lines;
++    this->Polys = other.Polys;
++    this->Strips = other.Strips;
++
++    this->VertsConnOffset = other.VertsConnOffset;
++    this->VertsOffset = other.VertsOffset;
++    this->LinesConnOffset = other.LinesConnOffset;
++    this->LinesOffset = other.LinesOffset;
++    this->PolysConnOffset = other.PolysConnOffset;
++    this->PolysOffset = other.PolysOffset;
++    this->StripsConnOffset = other.StripsConnOffset;
++    this->StripsOffset = other.StripsOffset;
++
++    this->PointMap = other.PointMap;
++    // These are here to have a different allocation for each threads
++    this->Cell.TakeReference(vtkGenericCell::New());
++    this->CellIds.TakeReference(vtkIdList::New());
++    this->IPts.TakeReference(vtkIdList::New());
++    this->ICellIds.TakeReference(vtkIdList::New());
++    this->Coords.TakeReference(vtkPoints::New());
++  }
++
++  LocalDataType& operator=(const LocalDataType& other)
++  {
++    if (this != &other)
++    {
++      LocalDataType tmp = LocalDataType(other);
++      this->Swap(tmp);
++    }
++    return *this;
++  }
++
++  void Swap(LocalDataType& other)
++  {
++    using std::swap; // the compiler will use custom swap for members if it exists
++
++    swap(this->Verts, other.Verts);
++    swap(this->Lines, other.Lines);
++    swap(this->Polys, other.Polys);
++    swap(this->Strips, other.Strips);
++
++    swap(this->VertsConnOffset, other.VertsConnOffset);
++    swap(this->VertsOffset, other.VertsOffset);
++    swap(this->LinesConnOffset, other.LinesConnOffset);
++    swap(this->LinesOffset, other.LinesOffset);
++    swap(this->PolysConnOffset, other.PolysConnOffset);
++    swap(this->PolysOffset, other.PolysOffset);
++    swap(this->StripsConnOffset, other.StripsConnOffset);
++    swap(this->StripsOffset, other.StripsOffset);
++
++    swap(this->PointMap, other.PointMap);
++    swap(this->Cell, other.Cell);
++    swap(this->CellIds, other.CellIds);
++    swap(this->IPts, other.IPts);
++    swap(this->ICellIds, other.ICellIds);
++    swap(this->Coords, other.Coords);
++  }
++
++
+   void SetPointMap(vtkIdType* ptMap)
+   {