Changeset 5375 for anuga_core/source
- Timestamp:
- May 28, 2008, 4:11:12 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/shallow_water/urs_ext.c
r5348 r5375 255 255 fread(lros,nsta0*sizeof(int),1,fp); 256 256 257 257 /* compute the size of the data block for source 0 */ 258 258 numData = getNumData(fros, lros, nsta0); 259 259 260 260 /* Burbidge: Added a sanity check here */ 261 if (numData < 0) 262 { 263 fprintf(stderr,"Size of data block appears to be negative!\n"); 264 //fprintf(stderr,"numData=%d fros=%d lros=%d nsta0=%d\n",numData,fros,lros,nsta0); 265 exit(-1); 266 } 267 261 if (numData < 0) { 262 fprintf(stderr,"Size of data block appears to be negative!\n"); 263 //fprintf(stderr,"numData=%d fros=%d lros=%d nsta0=%d\n",numData,fros,lros,nsta0); 264 exit(-1); 265 } 266 268 267 /* allocate space for these data, read them and close the file */ 269 268 *muxData = (float*) malloc(numData*sizeof(float)); … … 274 273 /* allocate space for tgsrwg for the other sources */ 275 274 mytgs = (struct tgsrwg *)malloc( nsta0*sizeof(struct tgsrwg) ); 276 } 275 } else { 276 /* FIXME (Ole): What should happen in case the are no source files?*/ 277 /* If we exit here, tests will break */ 278 // fprintf(stderr, "No source file specified\n"); 279 // exit(-1); 280 } 281 277 282 /* loop over sources, check compatibility, and read them into *muxData */ 278 283 for(isrc=1; isrc<numSrc; isrc++){
Note: See TracChangeset
for help on using the changeset viewer.