Skip to content

Commit

Permalink
add back the input processing code for air travel
Browse files Browse the repository at this point in the history
  • Loading branch information
tannguyen153 committed Nov 20, 2024
1 parent cc257b1 commit 4d21a72
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/inputs.ca
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ agent.air_traffic_filename= "../../data/CA_CY23AirTraffic.dat"
agent.nsteps = 120
agent.plot_int = 10
agent.random_travel_int = 24
agent.air_travel_int = -1
agent.air_travel_int = 1

agent.aggregated_diag_int = -1
agent.aggregated_diag_prefix = "cases"
Expand Down
4 changes: 4 additions & 0 deletions src/Utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ void ExaEpi::Utils::get_test_params ( TestParams& params, /*!< Test pa
params.ic_type = ICType::Census;
pp.get("census_filename", params.census_filename);
pp.get("workerflow_filename", params.workerflow_filename);
if (params.air_travel_int > 0) {
pp.get("air_traffic_filename", params.air_traffic_filename);
pp.get("airports_filename", params.airports_filename);
}
params.max_box_size = 16;
} else if (ic_type == "urbanpop") {
params.ic_type = ICType::UrbanPop;
Expand Down

0 comments on commit 4d21a72

Please sign in to comment.