Commit 686eac90 authored by Mohcine Chraibi's avatar Mohcine Chraibi

Don't ignore duplicate error, but exit

parent 6f46f9cb
......@@ -360,7 +360,7 @@ my_pair VelocityModel::GetSpacing(Pedestrian* ped1, Pedestrian* ped2, Point ei,
Log->Write("WARNING: \tin VelocityModel::GetSPacing() ep12 can not be calculated!!!\n");
Log->Write("\t\t Pedestrians are too near to each other (%f).", Distance);
my_pair(FLT_MAX, ped2->GetID());
//exit(EXIT_FAILURE); TODO
exit(EXIT_FAILURE); //TODO
}
double condition1 = ei.ScalarProduct(ep12); // < e_i , e_ij > should be positive
......@@ -401,9 +401,9 @@ Point VelocityModel::ForceRepPed(Pedestrian* ped1, Pedestrian* ped2, int periodi
Log->Write("\t\t Maybe the value of <a> in force_ped should be increased. Going to exit.\n");
printf("ped1 %d ped2 %d\n", ped1->GetID(), ped2->GetID());
printf("ped1 at (%f, %f), ped2 at (%f, %f)\n", ped1->GetPos()._x, ped1->GetPos()._y, ped2->GetPos()._x, ped2->GetPos()._y);
// exit(EXIT_FAILURE); //TODO: quick and dirty fix for issue #158
exit(EXIT_FAILURE); //TODO: quick and dirty fix for issue #158
// (sometimes sources create peds on the same location)
return F_rep; //no forces, in the hope these two get away soon
}
Point ei = ped1->GetV().Normalized();
if(ped1->GetV().NormSquare()<0.01){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment