remove the linearization recycling

linearization recycling lead to more complex code and -- more
importantly -- frequently caused problems for simulators.
This commit is contained in:
Andreas Lauser 2015-12-31 13:20:13 +01:00
parent 0cbc6839f2
commit f9b97334e4

View File

@ -112,9 +112,6 @@ public:
// Enable gravity
SET_BOOL_PROP(EclBaseProblem, EnableGravity, true);
// Reuse the last linearization if possible?
SET_BOOL_PROP(EclBaseProblem, EnableLinearizationRecycling, false);
// Only relinearize the parts where the current solution is sufficiently "bad"
SET_BOOL_PROP(EclBaseProblem, EnablePartialRelinearization, false);
@ -420,12 +417,8 @@ public:
{
auto& simulator = this->simulator();
const auto& eclState = simulator.gridManager().eclState();
auto& linearizer = this->model().linearizer();
int episodeIdx = simulator.episodeIndex();
bool wellsWillChange = wellManager_.wellsChanged(eclState, episodeIdx + 1);
linearizer.setLinearizationReusable(!wellsWillChange);
Opm::TimeMapConstPtr timeMap = eclState->getSchedule()->getTimeMap();
int numReportSteps = timeMap->size() - 1;
if (episodeIdx + 1 >= numReportSteps) {