[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

971124: compiling netcdf on VPP 300



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>