Skip to content

Commit

Permalink
skip agents in the incubation period
Browse files Browse the repository at this point in the history
  • Loading branch information
tannguyen153 committed Dec 11, 2023
1 parent aafce3a commit 79e3e65
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/AgentContainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1020,7 +1020,7 @@ void AgentContainer::interactAgentsHomeWork (MultiFab& /*mask_behavior*/, bool h
amrex::Real work_scale = 1.0; // TODO this should vary based on cell

/* Determine what connections these individuals have */
if ((nborhood_ptr[i] == nborhood_ptr[j]) && (family_ptr[i] == family_ptr[2]) && (!DAYTIME)) {
if ((nborhood_ptr[i] == nborhood_ptr[j]) && (family_ptr[i] == family_ptr[j]) && (!DAYTIME)) {
if (age_group_ptr[i] <= 1) { /* Transmitter i is a child */
if (school_ptr[i] < 0) { // not attending school, use _SC contacts
prob_ptr[j] *= 1.0 - infect * lparm->xmit_child_SC[age_group_ptr[j]];
Expand Down Expand Up @@ -1101,6 +1101,7 @@ void AgentContainer::interactAgentsHomeWork (MultiFab& /*mask_behavior*/, bool h
}
} /* within society */
} else if (status_ptr[j] == Status::infected && status_ptr[i] != Status::infected) {
if (counter_ptr[j] < lparm->incubation_length) { continue; }
// j can infect i
amrex::Real infect = lparm->infect;
infect *= lparm->vac_eff;
Expand Down

0 comments on commit 79e3e65

Please sign in to comment.