Merge pull request #1294 from akva2/there_there_mr_ocd

quell signed/unsigned mismatch warning
This commit is contained in:
Atgeirr Flø Rasmussen 2017-10-11 14:07:03 +02:00 committed by GitHub
commit 0264a1f609

View File

@ -107,7 +107,7 @@ namespace Opm
// TODO: in theory, we should use numWellEq here.
// for (int eqIdx = 0; eqIdx < numWellEq; ++eqIdx) {
for (int eqIdx = 0; eqIdx < numComponents(); ++eqIdx) {
assert( eqIdx < primary_variables_.size() );
assert( (size_t)eqIdx < primary_variables_.size() );
primary_variables_evaluation_[eqIdx] = 0.0;
primary_variables_evaluation_[eqIdx].setValue(primary_variables_[eqIdx]);