Ignore:
Timestamp:
Jul 29, 2008, 10:51:48 AM (15 years ago)
Author:
ole
Message:

Comments and more testing trying to find issues with urs2sts.

File:
1 edited

Legend:

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

    r5560 r5582  
    125125char isdata(float x)
    126126{
    127     //char value;
    128127    if(x < NODATA + EPSILON && NODATA < x + EPSILON)
    129128    {
    130        return 0;
     129      return 0;
    131130    }
    132131    else
    133132    {
    134         return 1; 
     133      return 1; 
    135134    }
    136135}
     
    272271
    273272        /* Compute the size of the data block for this source */
    274         numData = getNumData(fros + i*(*total_number_of_stations), lros + i*(*total_number_of_stations), (*total_number_of_stations));
     273        numData = getNumData(fros + i*(*total_number_of_stations),
     274                             lros + i*(*total_number_of_stations),
     275                             (*total_number_of_stations));
    275276
    276277        /* Sanity check */
     
    289290    }
    290291
     292    // Store time resolution and number of timesteps   
     293    // These are the same for all stations, so
     294    // we take the first one.
    291295    *delta_t = (double)mytgs0[0].dt;
    292296    *number_of_time_steps = mytgs0[0].nt;
    293297
    294         free(mytgs);
     298    free(mytgs);
    295299
    296300    return 1;
Note: See TracChangeset for help on using the changeset viewer.