Skip to content

Commit b63776a

Browse files
authored
1443 Change working_population type to FP (#1444)
1 parent 2b609bf commit b63776a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cpp/memilio/mobility/graph.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ IOResult<void> set_edges(const fs::path& mobility_data_file, Graph<Model, Mobili
426426
commuting_weights =
427427
(commuting_weights.size() == 0 ? std::vector<FP>(num_age_groups, 1.0) : commuting_weights);
428428
//commuters
429-
auto working_population = 0.0;
429+
FP working_population = 0.0;
430430
for (auto age = AgeGroup(0); age < populations.template size<mio::AgeGroup>(); ++age) {
431431
working_population += populations.get_group_total(age) * commuting_weights[size_t(age)];
432432
}

0 commit comments

Comments
 (0)