fixed: signed/unsigned comparison warnings

This commit is contained in:
Arne Morten Kvarving committed 2026-01-23 11:28:15 +01:00
1 parent 2aa246fa13
commit b82f01574a
1 file changed
+1 -1
+1 -1
View File
@@ -593,7 +593,7 @@ getMaxSolutionUpdate(const std::vector<unsigned>& ixCells)
// Loop over solution update, get the correct variables and calculate max.
for (const auto& ix : ixCells) {
const auto& value = solUpd_[ix];
for (int pvIdx = 0; pvIdx < value.size(); ++pvIdx) {
for (int pvIdx = 0; pvIdx < static_cast<int>(value.size()); ++pvIdx) {
if (pvIdx == Indices::pressureSwitchIdx) {
dPMax = std::max(dPMax, std::abs(value[pvIdx]));
}