mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-11-02 20:30:55 -06:00
fixed: signed/unsigned comparison warnings
This commit is contained in:
1 parent
2aa246fa13
commit
b82f01574a
1 file changed
+1
-1
@@ -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]));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user