🐛 count exusage even without flow regulation

parent 39879841
Pipeline #18959 failed with stages
in 10 minutes and 6 seconds
......@@ -746,11 +746,11 @@ void Simulation::UpdateFlowAtDoors(const Pedestrian& ped) const
//#pragma omp critical
bool regulateFlow = trans->GetOutflowRate() < (std::numeric_limits<double>::max)();
trans->IncreaseDoorUsage(1, ped.GetGlobalTime());
trans->IncreasePartialDoorUsage(1);
if(regulateFlow)
{
trans->IncreaseDoorUsage(1, ped.GetGlobalTime());
trans->IncreasePartialDoorUsage(1);
// when <dn> agents pass <trans>, we start evaluating the flow
// .. and maybe close the <trans>
if( trans->GetPartialDoorUsage() == trans->GetDN() ) {
......
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