Changeset 644 for branches

Show
Ignore:
Timestamp:
12/08/08 15:15:30 (15 months ago)
Author:
robl
Message:

aligning to nearest byte might violate spec, so keep old 512-byte alignment if
striping_unit not set

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/1.0.3/src/lib/nc.c

    r629 r644  
    793793  int rank; 
    794794  char value[MPI_MAX_INFO_VAL]; 
    795   int flag, alignment=0; 
     795  int flag, alignment=512; 
    796796 
    797797  assert(!NC_readonly(ncp)); 
     
    806806  if (flag)  
    807807          alignment=atoi(value); 
    808   /* negative or zero alignment? can't imagine what that would even mean.  just 
    809    * align to nearest byte (no alignment) */ 
     808  /* negative or zero alignment? can't imagine what that would even mean. in   
     809   * that case, align to nearest 512 byte (default for serial netcdf)) */ 
    810810  if (alignment <= 0) 
    811           alignment = 1; 
     811          alignment = 512; 
    812812 
    813813  MPI_Info_free(&info);