Skip to content
Snippets Groups Projects
Verified Commit 5229e432 authored by sunpoet's avatar sunpoet
Browse files

science/paraview: Fix build with netcdf 4.9.3+

parent ad5cac89
No related branches found
No related tags found
No related merge requests found
--- VTK/ThirdParty/exodusII/vtkexodusII/src/ex_put_prop_names.c.orig 2024-05-17 19:15:40 UTC
+++ VTK/ThirdParty/exodusII/vtkexodusII/src/ex_put_prop_names.c
@@ -172,7 +172,7 @@ int ex_put_prop_names(int exoid, ex_entity_type obj_ty
/* create attribute to cause variable to fill with zeros per routine spec
*/
- if ((status = nc_put_att_longlong(exoid, propid, _FillValue, int_type, 1, vals)) != NC_NOERR) {
+ if ((status = nc_put_att_longlong(exoid, propid, NC_FillValue, int_type, 1, vals)) != NC_NOERR) {
snprintf(errmsg, MAX_ERR_LENGTH,
"ERROR: failed to create property name fill attribute in file id %d", exoid);
ex_err_fn(exoid, __func__, errmsg, status);
--- VTK/ThirdParty/exodusII/vtkexodusII/src/ex_put_prop.c.orig 2024-05-17 19:15:40 UTC
+++ VTK/ThirdParty/exodusII/vtkexodusII/src/ex_put_prop.c
@@ -243,7 +243,7 @@ int ex_put_prop(int exoid, ex_entity_type obj_type, ex
vals[0] = 0; /* fill value */
/* create attribute to cause variable to fill with zeros per routine spec
*/
- if ((status = nc_put_att_longlong(exoid, propid, _FillValue, int_type, 1, vals)) != NC_NOERR) {
+ if ((status = nc_put_att_longlong(exoid, propid, NC_FillValue, int_type, 1, vals)) != NC_NOERR) {
snprintf(errmsg, MAX_ERR_LENGTH,
"ERROR: failed to create property name fill attribute in file id %d", exoid);
ex_err_fn(exoid, __func__, errmsg, status);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment