paraview: add patch for Intel Classic compilers (#49116)
ParaView 5.12.0 through 5.13.2 do not compile. See https://gitlab.kitware.com/vtk/vtk/-/issues/19620.
This commit is contained in:
parent
5ab71814a9
commit
7a95e2beb5
@ -359,6 +359,11 @@ class Paraview(CMakePackage, CudaPackage, ROCmPackage):
|
||||
# intel oneapi doesn't compile some code in catalyst
|
||||
patch("catalyst-etc_oneapi_fix.patch", when="@5.10.0:5.10.1%oneapi")
|
||||
|
||||
# Classic Intel compilers don't compile some code in vtkFFT.txx
|
||||
# https://gitlab.kitware.com/vtk/vtk/-/merge_requests/11928
|
||||
# Applying it for every compiler is fine.
|
||||
patch("vtk-fft-icc.patch", when="@5.12.0:5.13.2")
|
||||
|
||||
# Patch for paraview 5.8: ^hdf5@1.13.2:
|
||||
# Even with ~hdf5, hdf5 is part of the dependency tree due to netcdf-c
|
||||
# https://gitlab.kitware.com/vtk/vtk/-/merge_requests/9690
|
||||
|
13
var/spack/repos/builtin/packages/paraview/vtk-fft-icc.patch
Normal file
13
var/spack/repos/builtin/packages/paraview/vtk-fft-icc.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/VTK/Common/Math/vtkFFT.txx b/VTK/Common/Math/vtkFFT.txx
|
||||
index 043812a2f32..8c8410aeee9 100644
|
||||
--- a/VTK/Common/Math/vtkFFT.txx
|
||||
+++ b/VTK/Common/Math/vtkFFT.txx
|
||||
@@ -327,6 +327,6 @@ vtkSmartPointer<vtkFFT::vtkScalarNumberArray> vtkFFT::Csd(vtkScalarNumberArray*
|
||||
vtkSMPTools::Fill(averageRange.begin(), averageRange.end(), 0.0);
|
||||
|
||||
auto resRange = vtk::DataArrayTupleRange(result);
|
||||
- using ConstTupleRef = decltype(resRange)::ConstTupleReferenceType;
|
||||
+ using ConstTupleRef = typename decltype(resRange)::ConstTupleReferenceType;
|
||||
for (unsigned int i = 0; i < shape[0]; ++i)
|
||||
{
|
||||
auto begin = resRange.cbegin() + i * shape[1];
|
Loading…
Reference in New Issue
Block a user