mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Further silencing of warnings.
This commit is contained in:
parent
247ae11fc3
commit
5d5ae7d271
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user