Mercurial > hg > minc-tools
changeset 2332:9112e3077a8d
Fix up filestarts option implementation
author | bert <bert> |
---|---|
date | Fri, 15 Jul 2005 16:30:18 +0000 |
parents | d4c6de69bc2c |
children | f391064f9820 |
files | progs/mincconcat/mincconcat.c |
diffstat | 1 files changed, 8 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/progs/mincconcat/mincconcat.c +++ b/progs/mincconcat/mincconcat.c @@ -11,7 +11,10 @@ @CREATED : March 7, 1995 (Peter Neelin) @MODIFIED : * $Log: mincconcat.c,v $ - * Revision 6.8.2.2 2005-07-04 12:42:07 bert + * Revision 6.8.2.3 2005-07-15 16:30:18 bert + * Fix up filestarts option implementation + * + * Revision 6.8.2.2 2005/07/04 12:42:07 bert * Add -fileoffsets option * * Revision 6.8.2.1 2005/03/16 19:02:50 bert @@ -97,7 +100,7 @@ ---------------------------------------------------------------------------- */ #ifndef lint -static char rcsid[]="$Header: /private-cvsroot/minc/progs/mincconcat/mincconcat.c,v 6.8.2.2 2005-07-04 12:42:07 bert Exp $"; +static char rcsid[]="$Header: /private-cvsroot/minc/progs/mincconcat/mincconcat.c,v 6.8.2.3 2005-07-15 16:30:18 bert Exp $"; #endif #include <stdlib.h> @@ -762,7 +765,7 @@ /* Set defaults */ if (!Sort_sequential || (input_curfile < 1)) { - dimstart = concat_info->file_offsets[input_curfile]; + dimstart = 0; } else { index = concat_info->num_file_coords[input_curfile-1] - 1; @@ -810,7 +813,8 @@ (void) mivarget1(input_mincid, varid, &index, NC_DOUBLE, NULL, &concat_info->file_coords[input_curfile][index]); } - concat_info->file_coords[input_curfile][index] += dimstart; + concat_info->file_coords[input_curfile][index] += + concat_info->file_offsets[input_curfile]; } /* Look for dimension width variable */