/* This is part of the netCDF package. Copyright 2005 University Corporation for Atmospheric Research/Unidata See COPYRIGHT file for conditions of use. See www.unidata.ucar.edu for more info. Test netcdf-4 opaque types. $Id: tst_opaques.c,v 1.15 2008/04/23 17:01:34 ed Exp $ */ #include #include "netcdf.h" #include #define FILE_NAME "tst_opaques.nc" #define DIM_LEN 3 #define ATT_NAME "att_name" #define DIM_NAME "dim" #define BASE_SIZE 20 #define VAR_NAME "var" #define TYPE_NAME "type" int main(int argc, char **argv) { int ncid; size_t size_in; nc_type xtype; unsigned char data[DIM_LEN][BASE_SIZE], data_in[DIM_LEN][BASE_SIZE]; int i, j; #ifdef USE_PARALLEL MPI_Init(&argc, &argv); #endif printf("\n*** Testing netcdf-4 opaque type.\n"); for (i=0; i