Changeset 5582 for anuga_core/source/anuga/shallow_water/urs_ext.c
- Timestamp:
- Jul 29, 2008, 10:51:48 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/shallow_water/urs_ext.c
r5560 r5582 125 125 char isdata(float x) 126 126 { 127 //char value;128 127 if(x < NODATA + EPSILON && NODATA < x + EPSILON) 129 128 { 130 129 return 0; 131 130 } 132 131 else 133 132 { 134 133 return 1; 135 134 } 136 135 } … … 272 271 273 272 /* 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)); 275 276 276 277 /* Sanity check */ … … 289 290 } 290 291 292 // Store time resolution and number of timesteps 293 // These are the same for all stations, so 294 // we take the first one. 291 295 *delta_t = (double)mytgs0[0].dt; 292 296 *number_of_time_steps = mytgs0[0].nt; 293 297 294 298 free(mytgs); 295 299 296 300 return 1;
Note: See TracChangeset
for help on using the changeset viewer.