Ignore:
Timestamp:
Aug 4, 2008, 1:41:59 PM (15 years ago)
Author:
ole
Message:

Changed time vector in urs2sts to start at 0.0 insteade of delta_t

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/shallow_water/urs_ext.c

    r5582 r5602  
    3535void fillDataArray(int ista, int total_number_of_stations, int nt, int ig, int *nst,
    3636                   int *nft, float *data, int *istart_p,
    37            int *istop_p, float *muxData)
     37                   int *istop_p, float *muxData)
    3838{
    3939    int it, last_it, jsta;
     
    4242
    4343    last_it = -1;
    44     /* make arrays of starting and finishing time steps for the tide gauges */
     44    /* Make arrays of starting and finishing time steps for the tide gauges */
    4545    /* and fill them from the file */
    4646
    47     /* update start and stop timesteps for this gauge */
     47    /* Update start and stop timesteps for this gauge */
    4848    if (nst[ista]!= -1)
    4949    {
     
    158158//Internal Functions
    159159int _read_mux2_headers(int numSrc,
    160                         char **muxFileNameArray,
    161                         int* total_number_of_stations,
    162                                                 int* number_of_time_steps,
    163                                                 double* delta_t,
    164                         //long* numDataMax,
    165                         int verbose)
     160                       char **muxFileNameArray,
     161                       int* total_number_of_stations,
     162                       int* number_of_time_steps,
     163                       double* delta_t,
     164                       //long* numDataMax,
     165                       int verbose)
    166166{
    167167    FILE *fp;
     
    415415        fseek(fp, offset, 0);
    416416
    417         numData = getNumData(fros + isrc*total_number_of_stations, lros + isrc*total_number_of_stations, total_number_of_stations);
     417        numData = getNumData(fros + isrc*total_number_of_stations,
     418                             lros + isrc*total_number_of_stations,
     419                             total_number_of_stations);
     420                             
    418421        fread(muxData, numData*sizeof(float), 1, fp);
    419422        fclose(fp);
Note: See TracChangeset for help on using the changeset viewer.