mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-27 21:46:26 -06:00
remove the linearization recycling
linearization recycling lead to more complex code and -- more importantly -- frequently caused problems for simulators.
This commit is contained in:
parent
0cbc6839f2
commit
f9b97334e4
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user