Skip to content

Commit 336c894

Browse files
committed
EXODUS: Remove incorrect symbol name
1 parent a88c777 commit 336c894

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

packages/seacas/applications/exo_format/exo_format.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ int main(int argc, char *argv[])
180180

181181
/* Determine number of dims and vars -- useful in debugging incorrect NC_MAX_DIMS|VARS in netcdf.h
182182
*/
183-
#if NC_HAS_NC4
183+
#if NC_HAS_HDF5
184184
{
185185
int ndims = 0;
186186
int nvars = 0;

packages/seacas/libraries/exodus/src/ex_get_init_ext.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626

2727
static void exi_get_entity_count(int exoid, ex_init_params *info)
2828
{
29-
int include_parent_group = 0; // Only want dims in current group
3029
int ndims = 0;
31-
#if NC_HAS_NC4
30+
#if NC_HAS_HDF5
31+
int include_parent_group = 0; // Only want dims in current group
3232
nc_inq_dimids(exoid, &ndims, NULL, include_parent_group);
3333
int *dimids = calloc(ndims, sizeof(int));
3434
nc_inq_dimids(exoid, &ndims, dimids, include_parent_group);
@@ -38,7 +38,7 @@ static void exi_get_entity_count(int exoid, ex_init_params *info)
3838
for (int dimid = 0; dimid < ndims; dimid++) {
3939
char dim_nm[NC_MAX_NAME + 1] = {'\0'};
4040
size_t dim_sz;
41-
#if NC_HAS_NC4
41+
#if NC_HAS_HDF5
4242
nc_inq_dim(exoid, dimids[dimid], dim_nm, &dim_sz);
4343
#else
4444
nc_inq_dim(exoid, dimid, dim_nm, &dim_sz);
@@ -51,7 +51,7 @@ static void exi_get_entity_count(int exoid, ex_init_params *info)
5151
info->num_blob++;
5252
}
5353
}
54-
#if NC_HAS_NC4
54+
#if NC_HAS_HDF5
5555
free(dimids);
5656
#endif
5757
}

0 commit comments

Comments
 (0)