spack/var/spack/repos/builtin/packages/paraview/exodusII-netcdf4.9.0.patch
Dan Lipsa 79656655ba
Guard for define in netcdf 4.9.0 and later. (#37853)
* Guard for define in netcdf 4.9.0 and later.

This code is already available in ParaView 5.11.0 so no patching
needed there.

* Add latest needed version (even if not in spack).

---------

Co-authored-by: Dan Lipsa <dan.lipsa@khq.kitware.com>
2023-06-07 14:20:27 -05:00

15 lines
666 B
Diff

*** a/VTK/ThirdParty/exodusII/vtkexodusII/src/ex_utils.c 2023-03-16 16:57:14.172102586 -0400
--- b/VTK/ThirdParty/exodusII/vtkexodusII/src/ex_utils.c 2023-03-16 11:20:28.230116660 -0400
***************
*** 1770,1776 ****
--- 1770,1778 ----
*/
/* const int NC_SZIP_EC = 4; */ /* Selects entropy coding method for szip. */
+ #ifndef NC_SZIP_NN
const int NC_SZIP_NN = 32; /* Selects nearest neighbor coding method for szip. */
+ #endif
/* Even and between 4 and 32; typical values are 8, 10, 16, 32 */
const int SZIP_PIXELS_PER_BLOCK =
file->compression_level == 0 ? 32 : file->compression_level;