making room for new tests
int
main(int argc, char **argv)
+{
+ printf("\n*** Testing netcdf-4 variable with unlimited dimensions.\n");
+ printf("*** Testing file with one var, one unlim dim...");
{
int ncid, sfc_tempid;
float data_out[NUM_TIMESTEPS][LAT_LEN][LON_LEN], data_in[NUM_TIMESTEPS][LAT_LEN][LON_LEN];
@@ -35,15 +38,13 @@ main(int argc, char **argv)
size_t start[NDIMS], count[NDIMS];
int d;
+
/* Set up phony data. */
for (time = 0; time < NUM_TIMESTEPS; time++)
for (lat = 0; lat < LAT_LEN; lat++)
for (lon = 0; lon < LON_LEN; lon++)
data_out[time][lat][lon] = 25.5 + lat + lon + time;
- printf("\n*** Testing netcdf-4 variable with unlimited dimensions.\n");
- printf("*** Testing file with one var, one unlim dim...");
-
/* Create a file with a 3D surface temp variable. */
if (nc_create(FILE_NAME, NC_NETCDF4, &ncid)) ERR;
@@ -150,6 +151,7 @@ main(int argc, char **argv)
if (data_in[time][lat][lon] != data_out[time][lat][lon]) ERR;
if (nc_close(ncid)) ERR;
+ }
SUMMARIZE_ERR;
FINAL_RESULTS;
}
