Merge pull request #370 from blattms/fixes-comparison-warning

Prevent unsigned vs. signed int comparison warning
This commit is contained in:
Atgeirr Flø Rasmussen 2015-04-30 16:54:19 +02:00
commit 208b227ea8

View File

@ -442,7 +442,7 @@ namespace detail {
}
state.qs = ADB::constant(state.qs.value());
state.bhp = ADB::constant(state.bhp.value());
assert(state.canonical_phase_pressures.size() == Opm::BlackoilPhases::MaxNumPhases);
assert(state.canonical_phase_pressures.size() == static_cast<std::size_t>(Opm::BlackoilPhases::MaxNumPhases));
for (int canphase = 0; canphase < Opm::BlackoilPhases::MaxNumPhases; ++canphase) {
ADB& pp = state.canonical_phase_pressures[canphase];
pp = ADB::constant(pp.value());