Skip to content

Commit af80b25

Browse files
committed
EXO_FORMAT: Remove the header size output; needs portability work
1 parent 75963ed commit af80b25

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

packages/seacas/applications/exo_format/exo_format.c

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@
3232
#define NOT_NETCDF 2
3333
#define NOT_EXODUSII 3
3434

35-
#if NC_HAS_PNETCDF
36-
#include "pnetcdf.h"
37-
#endif
38-
3935
int main(int argc, char *argv[])
4036
{
4137
/* Determine if filename was given */
@@ -201,28 +197,6 @@ int main(int argc, char *argv[])
201197
printf("ex_close failed");
202198
}
203199

204-
#if NC_HAS_PNETCDF
205-
if (nc_format != NC_FORMAT_NETCDF4 && nc_format != NC_FORMAT_NETCDF4_CLASSIC) {
206-
MPI_Init(&argc, &argv);
207-
int ncid = -1;
208-
ncmpi_open(MPI_COMM_SELF, filename, NC_NOWRITE, MPI_INFO_NULL, &ncid);
209-
210-
if (ncid >= 0) {
211-
MPI_Offset size = 0;
212-
MPI_Offset extent = 0;
213-
ncmpi_inq_header_size(ncid, &size);
214-
ncmpi_inq_header_extent(ncid, &extent);
215-
fprintf(stderr, "\t\tHeader size = %lld\n", size);
216-
fprintf(stderr, "\t\tHeader extent = %lld\n\n", extent);
217-
ncmpi_close(ncid);
218-
}
219-
MPI_Finalize();
220-
}
221-
else {
222-
fprintf(stderr, "\t\tHeader size and extent not meaningful for netcdf-4 files.\n\n");
223-
}
224-
#endif
225-
226200
version += 0.00005F;
227201
char cversion[9];
228202
snprintf(cversion, 9, "%4.2f", version);

0 commit comments

Comments
 (0)