Well shared_ptr alias deprecated

The shared_ptr aliasing is deprecated, and in the Well case this has
been removed upstream.
This commit is contained in:
Jørgen Kvalsvik
2016-06-16 10:01:04 +02:00
parent 691969eb86
commit ef51e9a2eb
8 changed files with 22 additions and 22 deletions

View File

@@ -185,13 +185,13 @@ namespace Opm
setupCompressedToCartesian(global_cell, number_of_cells,
cartesian_to_compressed);
ScheduleConstPtr schedule = eclipseState->getSchedule();
std::vector<WellConstPtr> wells = schedule->getWells(timeStep);
ScheduleConstPtr schedule = eclipseState->getSchedule();
auto wells = schedule->getWells(timeStep);
int well_index = 0;
for (auto wellIter= wells.begin(); wellIter != wells.end(); ++wellIter) {
WellConstPtr well = (*wellIter);
const auto* well = (*wellIter);
if (well->getStatus(timeStep) == WellCommon::SHUT) {
continue;