Skip to content

Commit

Permalink
New hydro remix : replace use of std::max_element with use of std::ra…
Browse files Browse the repository at this point in the history
…nges::max_element
  • Loading branch information
guilpier-code committed Dec 27, 2024
1 parent da27cb9 commit 416c6fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/solver/simulation/hydro-remix-new.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ RemixHydroOutput new_remix_hydro(const std::vector<double>& G,

int loop = 1000;
double eps = 1e-3;
double top = *std::max_element(G.begin(), G.end()) + *std::max_element(H.begin(), H.end())
+ *std::max_element(D.begin(), D.end()) + 1;
double top = *std::ranges::max_element(G) + *std::ranges::max_element(H)
+ *std::ranges::max_element(D) + 1;

std::vector<bool> filter_hours_remix(G.size(), false);
for (unsigned int h = 0; h < filter_hours_remix.size(); h++)
Expand Down

0 comments on commit 416c6fa

Please sign in to comment.