From 179af4efdb47b632f5c0dd5f09ece0c2d6ef5114 Mon Sep 17 00:00:00 2001 From: Debojyoti Ghosh Date: Tue, 5 Nov 2024 12:13:09 -0800 Subject: [PATCH] incubation period should be less than the latent+infectious periods! --- src/AgentContainer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AgentContainer.cpp b/src/AgentContainer.cpp index 2a3d054..6804cf8 100644 --- a/src/AgentContainer.cpp +++ b/src/AgentContainer.cpp @@ -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; }