Further silencing of warnings.

This commit is contained in:
Atgeirr Flø Rasmussen 2015-10-07 12:37:35 +02:00 committed by Kai Bao
parent 247ae11fc3
commit 5d5ae7d271
2 changed files with 2 additions and 2 deletions

View File

@ -536,6 +536,7 @@ namespace Opm {
// TODO: it must be done one by one?
// or we develop a new Wells class?
static_cast<void>(nperf);
// Add well contributions to mass balance equations
// const int nc = Opm::AutoDiffGrid::numCells(grid_);
// const int nw = wells().number_of_wells;

View File

@ -281,14 +281,13 @@ namespace Opm
typedef typename WellMapType::const_iterator const_iterator;
const_iterator end_old = prevState.wellMap().end();
const_iterator end_this = wellMap().end();
for (int w = 0; w < nw; ++w) {
std::string well_name(wells[w]->name());
const_iterator it_old = prevState.wellMap().find(well_name);
const_iterator it_this = wellMap().find(well_name);
assert(it_this != end_this); // the current well must be present in the current well map
assert(it_this != wellMap().end()); // the current well must be present in the current well map
if (it_old != end_old) {
const int oldIndex = (*it_old).second.well_number;