Changeset 98


Ignore:
Timestamp:
02/18/2009 08:34:24 AM (15 years ago)
Author:
marcus
Message:

r79 | svn | 2009-02-13 18:23:39 +0100 (Fr, 13 Feb 2009) | 1 line

fix concatenation of records of different size in seed_tidy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • SH_SHM/trunk/source/seed_io/seed_tidy.c

    r16 r98  
    709709        static int      recnum=1;           /* record counter */ 
    710710        static int      sngcnt=1;           /* single record counter */ 
     711    static int      last_reclth=0;      /* length of last record */ 
     712    int             this_reclth;        /* length of this record */ 
    711713        NTIME           r_start, r_end;     /* times of current record */ 
    712714        NTIME           nametime;           /* time used for filename */ 
     
    925927        if  (F_SINGLERECS & flags)  new_file = TRUE; 
    926928 
     929    /* new file if the record lenth changes */ 
     930    this_reclth = SeedGetReclth( (SeedDataHeaderT *)rec, FALSE ); 
     931    if  (last_reclth > 0 && this_reclth != last_reclth)  { 
     932        printf( "record length changed from %d to %d\n", last_reclth, 
     933            this_reclth ); 
     934        new_file = TRUE; 
     935    } /*endif*/ 
     936    last_reclth = this_reclth; 
     937 
    927938        /* open new file if necessary */ 
    928939        if  (new_file)  { 
Note: See TracChangeset for help on using the changeset viewer.