Changeset 706
- Timestamp:
- 10/30/09 12:55:40 (3 weeks ago)
- Files:
-
- 1 modified
-
trunk/src/lib/header.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/header.c
r704 r706 26 26 #ifndef MIN 27 27 #define MIN(mm,nn) (((mm) < (nn)) ? (mm) : (nn)) 28 #endif 29 30 #ifdef SIZEOF_INT 31 # if SIZEOF_INT == 4 32 # define lld(x) (x) 33 # elif SIZEOF_INT == 8 34 # define lld(x) (long long)(x) 35 # endif 28 36 #endif 29 37 … … 1298 1306 #ifdef METADATA_CONSISTENCY_CHECK 1299 1307 if (nc_attr1->nelems != nc_attr2->nelems){ 1300 printf("Warning: The number of attributes (root=% d != %d) of NC definations on multiprocesses inconsistent.\n",nc_attr1->nelems,nc_attr2->nelems);1308 printf("Warning: The number of attributes (root=%lld != %lld) of NC definations on multiprocesses inconsistent.\n",lld(nc_attr1->nelems),lld(nc_attr2->nelems)); 1301 1309 } else { 1302 1310 for (i=0; i<nc_attr1->nelems; i++){ 1303 1311 if (nc_attr1->value[i]->xsz != nc_attr2->value[i]->xsz){ 1304 printf("Warning: The size of attribute (root=% d != %d) of NC definations on multiprocesses inconsistent.\n",nc_attr1->value[i]->xsz,nc_attr2->value[i]->xsz);1312 printf("Warning: The size of attribute (root=%lld != %lld) of NC definations on multiprocesses inconsistent.\n",lld(nc_attr1->value[i]->xsz),lld(nc_attr2->value[i]->xsz)); 1305 1313 } 1306 1314 if ((nc_attr1->value[i]->name->nchars != nc_attr2->value[i]->name->nchars)||(strcmp(nc_attr1->value[i]->name->cp, nc_attr2->value[i]->name->cp))){ … … 1314 1322 } 1315 1323 if (nc_attr1->value[i]->nelems != nc_attr2->value[i]->nelems){ 1316 printf("Warning: The length of attribute (root=% d != %d) of NC definations on multiprocesses inconsistent.\n",nc_attr1->value[i]->nelems,nc_attr2->value[i]->nelems);1324 printf("Warning: The length of attribute (root=%lld != %lld) of NC definations on multiprocesses inconsistent.\n",lld(nc_attr1->value[i]->nelems),lld(nc_attr2->value[i]->nelems)); 1317 1325 } 1318 1326 }
![(please configure the [header_logo] section in trac.ini)](/projects/parallel-netcdf/chrome/common/trac_banner.png)