Skip to content

Commit fd9830e

Browse files
committed
Fix MacOS compilation errors
1 parent 58be71f commit fd9830e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

source/pbat/sim/vbd/multigrid/HyperReduction.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,9 @@ void HyperReduction::ConstructHierarchicalClustering(Hierarchy const& hierarchy,
108108
auto const& v = Gadj;
109109
auto SGu = C[l](u);
110110
auto SGv = C[l](v);
111-
auto edgeView = std::views::iota(0, SGu.size()) | std::views::transform([&](auto i) {
112-
return graph::WeightedEdge(SGu(i), SGv(i), Gwts(i));
111+
auto edgeView = std::views::iota(Index(0), static_cast<Index>(SGu.size())) |
112+
std::views::transform([&](Index i) {
113+
return graph::WeightedEdge<Index, Index>(SGu(i), SGv(i), Gwts(i));
113114
}) |
114115
std::views::common;
115116
// NOTE:

0 commit comments

Comments
 (0)