closed soil_file is used instead of geol_file @read_alloc.c
Brought to you by:
pihmmodel
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.