[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: examples
- Subject: Re: examples
- Date: Thu, 03 Oct 2002 13:36:44 -0600
>To: address@hidden
>From: "Reula, Oscar" <address@hidden>
>Subject: Re: 20020910: subject
>Organization: FaMAF, Univ. Nac. de Cordoba, 5000 Cordoba, ARGENTINA
>Keywords: 200210031824.g93IO1129487, no data written
Oscar,
> static size_t count_field[] =
> {0,N_GRID_PLOT_PTS_1,N_GRID_PLOT_PTS_2,N_GRID_PLOT_PTS_3}; /* where to
> stop writing */
If one of {N_GRID_PLOT_PTS_1, N_GRID_PLOT_PTS_2, N_GRID_PLOT_PTS_3}
were defined to be 0, that would cause no data to be written.
> stat =
> nc_put_vara_double(ncid,field_id,start_field,count_field,&((*plot_ptr).plot_field[field_ind][0][0][0]));
Try printing the values of start_field and count_field arrays before
the above statement is executed. Otherwise, I'm afraid I can't see
anything wrong ...
--Russ