mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-23 09:46:24 -06:00
Removes unsigned-signed integer comparison warnings.
This commit is contained in:
parent
48c3802bf3
commit
3aa60433ad
@ -172,8 +172,8 @@ public:
|
||||
int cartElem1Idx = vanguard.cartesianIndex(elem1Idx);
|
||||
int cartElem2Idx = vanguard.cartesianIndex(elem2Idx);
|
||||
|
||||
assert(0 <= cartElem1Idx && cartElemFaultIdx_.size() > cartElem1Idx);
|
||||
assert(0 <= cartElem2Idx && cartElemFaultIdx_.size() > cartElem2Idx);
|
||||
assert(0 <= cartElem1Idx && cartElemFaultIdx_.size() > 0U + cartElem1Idx);
|
||||
assert(0 <= cartElem2Idx && cartElemFaultIdx_.size() > 0U + cartElem2Idx);
|
||||
|
||||
int fault1Idx = cartElemFaultIdx_[cartElem1Idx];
|
||||
int fault2Idx = cartElemFaultIdx_[cartElem2Idx];
|
||||
|
@ -1737,7 +1737,7 @@ namespace Opm {
|
||||
const auto& segments = well.segments;
|
||||
|
||||
// \Note: eventually we need to hanlde the situations that some segments are shut
|
||||
assert(int(segment_set.size()) == segments.size());
|
||||
assert( 1u + segment_set.size() == segments.size());
|
||||
|
||||
for (const auto& segment : segments) {
|
||||
const int segment_index = segment_set.segmentNumberToIndex(segment.first);
|
||||
|
Loading…
Reference in New Issue
Block a user