Segfaults here: where area is set to one at i=4020, y=1 (from gdb backtrace)
From Freya's larger DEM mexico. (Sent to email for further debugging)
void LSDCatchmentModel::zero_and_calc_drainage_area()
{
// Zeros the area and are-depth arrays
// Sets area_depth to ones as a flag but
// zeros the ones outisde the catchment
for(unsigned i=1; i<=imax; i++)
{
for(unsigned j=1; j<=jmax; j++)
{
area_depth[i][j]=1; <----------SEGFAULT
area[i][j] = 0;
if (elev[i][j] == -9999)
{
area_depth[i][j] = 0.0;
}
}
}
drainage_area_D8(); // This refers to a newer area getting method in CaesarLisflood
}
Segfaults here: where area is set to one at i=4020, y=1 (from gdb backtrace)
From Freya's larger DEM mexico. (Sent to email for further debugging)