Skip to content

Commit

Permalink
New hydro remix : use of std::ranges
Browse files Browse the repository at this point in the history
  • Loading branch information
guilpier-code committed Dec 27, 2024
1 parent 416c6fa commit 66c4b47
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/solver/simulation/hydro-remix-new.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -237,14 +237,11 @@ RemixHydroOutput new_remix_hydro(const std::vector<double>& G,
if (idx_creux < idx_pic)
{
max_pic = capa;
max_creux = *std::min_element(intermediate_level.begin(),
intermediate_level.end());
max_creux = *std::ranges::min_element(intermediate_level);
}
else
{
max_pic = capa
- *std::max_element(intermediate_level.begin(),
intermediate_level.end());
max_pic = capa - *std::ranges::max_element(intermediate_level);
max_creux = capa;
}

Expand Down

0 comments on commit 66c4b47

Please sign in to comment.