From f12016932df085a377e868b0ecfba27ef70abdb5 Mon Sep 17 00:00:00 2001 From: shofmeyr Date: Wed, 6 Nov 2024 06:20:11 -1000 Subject: [PATCH] Fixed error in debug build with Real check --- src/DiseaseStatus.H | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DiseaseStatus.H b/src/DiseaseStatus.H index b041af7..c90870d 100644 --- a/src/DiseaseStatus.H +++ b/src/DiseaseStatus.H @@ -169,7 +169,7 @@ void DiseaseStatus::updateAgents(AC& a_agents, /*!< Agent contain symptomatic_ptr[i] = SymptomStatus::symptomatic; } if (symptomatic_ptr[i] == SymptomStatus::symptomatic) { - if (symptomatic_withdraw_compliance && (Random(engine) < symptomatic_withdraw_compliance)) { + if (symptomatic_withdraw_compliance > 0.0_rt && (Random(engine) < symptomatic_withdraw_compliance)) { withdrawn_ptr[i] = 1; } int marked_for_ICU_i = 0, marked_for_vent_i = 0;