Menu

#2 closed soil_file is used instead of geol_file @read_alloc.c

open
nobody
None
5
2010-12-08
2010-12-08
No

Debugging with mudflap ( http://gcc.gnu.org/wiki/Mudflap_Pointer_Debugging ) helped to track down misuse of a file stream around line 267 @ read_alloc.c . It is likely it should reads as

fscanf(geol_file, "%lf %lf", &(DS->Geol[i].Alpha), &(DS->Geol[i].Beta));
fscanf(geol_file, "%lf %lf %lf", &(DS->Geol[i].vAreaF),&(DS->Geol[i].macKsatH),&(DS->Geol[i].macD));

whereas soil_file is used, which even was previously closed.

Discussion


Log in to post a comment.