This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Peter, >Date: Mon, 24 Nov 1997 11:21:41 +0000 (GMT) >From: P M Oliver <address@hidden> >Organization: DCI Systems & User Support Group, RAL >To: Steve Emmerson <address@hidden> >Subject: Re: 971121: compiling netcdf on VPP 300 >Keywords: 199711141550.IAA06528 In the above message, you wrote: > > What's the size (in bytes) of the C type "ptrdiff_t" on the system? > > Would you please send me the "typedef" declaration of "ptrdiff_t". > > sorry if this is a duplicate. > > typedef int ptrdiff_t > > and ints are 4 bytes Odd. The information you've given me so far indicates that the ncvarputg() call should fail as expected -- yet it doesn't. Let's try adding some diagnostic print statements. Go into the libsrc/ subdirectory. Edit the function "nc_get_varm_int() in the file "putget.c". Change the following /* * Verify stride argument. */ for (idim = 0; idim <= maxidim; ++idim) { to /* * Verify stride argument. */ for (idim = 0; idim <= maxidim; ++idim) { (void)printf("nc_get_varm_int(): stride[%d]=%ld\n", idim, (long)stride[idim]); Execute a "make" in the directory (NOTE: The file "putget.c" is created from the file "putget.m4" and the "make" should *not* regenerate "putget.c" -- if it does then the print statement will dissapear). Go to the ../nctest subdirectory. Execute a "make test" there. Send us the output. -------- Steve Emmerson <http://www.unidata.ucar.edu>