From 5d83e0a3c351375100bbabad9faaba2f234defc2 Mon Sep 17 00:00:00 2001 From: Debojyoti Ghosh Date: Fri, 1 Nov 2024 12:57:22 -0700 Subject: [PATCH] read in name of air travel data file only if air travel is being included (#87) --- src/Utils.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Utils.cpp b/src/Utils.cpp index e4cc036..bdb75d7 100644 --- a/src/Utils.cpp +++ b/src/Utils.cpp @@ -65,8 +65,10 @@ void ExaEpi::Utils::get_test_params ( TestParams& params, /*!< Test pa pp.get("census_filename", params.census_filename); pp.get("workerflow_filename", params.workerflow_filename); pp.getarr("initial_case_type", params.initial_case_type,0,params.num_diseases); - pp.get("air_traffic_filename", params.air_traffic_filename); - pp.get("airports_filename", params.airports_filename); + if (params.air_travel_int > 0) { + pp.get("air_traffic_filename", params.air_traffic_filename); + pp.get("airports_filename", params.airports_filename); + } if (params.num_diseases == 1) { if (params.initial_case_type[0] == "file") { if (pp.contains("case_filename")) {