Skip to content

Commit

Permalink
incubation period should be less than the latent+infectious periods!
Browse files Browse the repository at this point in the history
  • Loading branch information
debog committed Nov 5, 2024
1 parent c1a4331 commit 179af4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/AgentContainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -677,8 +677,8 @@ void AgentContainer::infectAgents ()
if (latent_period_ptr[i] < 0) { latent_period_ptr[i] = 0.0_rt; }
if (infectious_period_ptr[i] < 0) { infectious_period_ptr[i] = 0.0_rt; }
if (incubation_period_ptr[i] < 0) { incubation_period_ptr[i] = 0.0_rt; }
if (latent_period_ptr[i] > (infectious_period_ptr[i]+incubation_period_ptr[i])) {
latent_period_ptr[i] = std::floor(infectious_period_ptr[i]+incubation_period_ptr[i]);
if (incubation_period_ptr[i] > (infectious_period_ptr[i]+latent_period_ptr[i])) {
incubation_period_ptr[i] = std::floor(infectious_period_ptr[i]+latent_period_ptr[i]);
}
return;
}
Expand Down

0 comments on commit 179af4e

Please sign in to comment.