Skip to content

Commit

Permalink
fix DAYTIME
Browse files Browse the repository at this point in the history
  • Loading branch information
atmyers committed Dec 12, 2023
1 parent b9dfb2b commit 2fee1b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/AgentContainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,7 @@ void AgentContainer::interactAgentsHomeWork (MultiFab& /*mask_behavior*/, bool h
{
BL_PROFILE("AgentContainer::interactAgentsHomeWork");

const bool DAYTIME = home;
const bool DAYTIME = !home;
IntVect bin_size = {AMREX_D_DECL(1, 1, 1)};
for (int lev = 0; lev < numLevels(); ++lev)
{
Expand Down
6 changes: 2 additions & 4 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,18 +94,16 @@ void runAgent ()
}

pc.updateStatus(disease_stats);
pc.interactAgentsHomeWork(mask_behavior, true);
pc.moveAgentsToWork();
pc.interactAgentsHomeWork(mask_behavior, false);
pc.moveAgentsToHome();

pc.interactAgentsHomeWork(mask_behavior, true);
pc.infectAgents();

// if ((params.random_travel_int > 0) && (i % params.random_travel_int == 0)) {
// pc.moveRandomTravel();
// }

pc.Redistribute();
// pc.Redistribute();

auto counts = pc.printTotals();
if (counts[1] > num_infected_peak) {
Expand Down

0 comments on commit 2fee1b0

Please sign in to comment.