switched to vara functions in 3D test
@@ -208,7 +208,7 @@ main(int argc, char **argv)
int ncid, varid, dimid[NDIM3];
int data = TEST_VAL_42;
int data_in;
- size_t index[NDIM3] = {1, 1, 1};
+ size_t start[NDIM3] = {1, 1, 1}, count[NDIM3] = {1, 1, 1};
char name_in[NC_MAX_NAME + 1];
size_t len_in;
@@ -233,16 +233,16 @@ main(int argc, char **argv)
/* Reopen the file and add data. */
if (nc_open(FILE_NAME, NC_WRITE, &ncid)) ERR;
- if (nc_put_var1_int(ncid, 0, index, &data)) ERR;
+ if (nc_put_vara_int(ncid, 0, start, count, &data)) ERR;
if (nc_inq_dim(ncid, 0, NULL, &len_in)) ERR;
if (len_in != 2) ERR;
if (nc_inq_dim(ncid, 1, NULL, &len_in)) ERR;
if (len_in != 2) ERR;
if (nc_inq_dim(ncid, 2, NULL, &len_in)) ERR;
if (len_in != 2) ERR;
- if (nc_get_var1_int(ncid, 0, index, &data_in)) ERR;
+ if (nc_get_vara_int(ncid, 0, start, count, &data_in)) ERR;
if (data_in != data) ERR;
- if (nc_get_var1_int(ncid, 1, index, &data_in)) ERR;
+ if (nc_get_vara_int(ncid, 1, start, count, &data_in)) ERR;
if (data_in != NC_FILL_INT) ERR;
if (nc_close(ncid)) ERR;
