Writing large files from pnetcdf on IBM

John Michalakes john at michalakes.us
Tue Nov 28 06:50:00 CST 2006


I'm running into problems creating and writing large files (> 2GB) from Fortran
on an IBM Power5 (bluevista.ucar.edu).  When the output file is less than 2GB it
writes okay.  When output is greater than 2GB, ncdump reports that the file is
not a NetCDF file and od shows that a large section at the beginning of the file
is all zeros.

I'm creating the file:

  stat = NFMPI_CREATE(Comm, FileName, IOR(NF_CLOBBER, NF_64BIT_OFFSET),
MPI_INFO_NULL, DH%NCID)

The value of stat is zero.

Code is compiled with OBJECT_MODE set to 64, and I'm pretty sure all the
relevant offset types are 64-bit. I'm using the version of parallel netcdf in
bluevista:/contrib/netcdf .  The file pnetcdf.h contains the string:

  /* "$Id: pnetcdf.h,v 1.20 2005/10/22 16:31:31 jianwli Exp $" */

Any ideas?

Thanks,

John

-----------------------------------------------------------
John Michalakes, Software Engineer        michalak at ucar.edu
NCAR, MMM Division                   voice: +1 303 497 8199
3450 Mitchell Lane                     fax: +1 303 497 8181
Boulder, Colorado 80301 U.S.A.        cell: +1 720 209 2320
        http://www.mmm.ucar.edu/individual/michalakes
-----------------------------------------------------------









More information about the parallel-netcdf mailing list