mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -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:
@@ -58,10 +58,6 @@ SET_TYPE_PROP(Co2InjectionFlashNiEcfvProblem, Scalar, quad);
|
||||
// the default linear solver used for this problem (-> AMG) cannot be used with quadruple
|
||||
// precision scalars... (this seems to only apply to Dune >= 2.4)
|
||||
SET_TAG_PROP(Co2InjectionFlashNiEcfvProblem, LinearSolverSplice, ParallelIterativeLinearSolver);
|
||||
|
||||
// somehow the test does not converge if linearization recycling is enabled. TODO: figure
|
||||
// out why!
|
||||
SET_BOOL_PROP(Co2InjectionFlashNiEcfvProblem, EnableLinearizationRecycling, false);
|
||||
#else
|
||||
SET_SCALAR_PROP(Co2InjectionFlashNiEcfvProblem, NewtonRawTolerance, 1e-5);
|
||||
#endif
|
||||
|
||||
@@ -140,9 +140,6 @@ SET_BOOL_PROP(Co2InjectionBaseProblem, NewtonWriteConvergence, false);
|
||||
// Enable gravity
|
||||
SET_BOOL_PROP(Co2InjectionBaseProblem, EnableGravity, true);
|
||||
|
||||
// Reuse linearizations if possible?
|
||||
SET_BOOL_PROP(Co2InjectionBaseProblem, EnableLinearizationRecycling, true);
|
||||
|
||||
// set the defaults for the problem specific properties
|
||||
SET_SCALAR_PROP(Co2InjectionBaseProblem, FluidSystemPressureLow, 3e7);
|
||||
SET_SCALAR_PROP(Co2InjectionBaseProblem, FluidSystemPressureHigh, 4e7);
|
||||
|
||||
@@ -93,9 +93,6 @@ SET_BOOL_PROP(ReservoirBaseProblem, NewtonWriteConvergence, false);
|
||||
// Enable gravity
|
||||
SET_BOOL_PROP(ReservoirBaseProblem, EnableGravity, true);
|
||||
|
||||
// Reuse the last linearization if possible?
|
||||
SET_BOOL_PROP(ReservoirBaseProblem, EnableLinearizationRecycling, true);
|
||||
|
||||
// Enable constraint DOFs?
|
||||
SET_BOOL_PROP(ReservoirBaseProblem, EnableConstraints, true);
|
||||
|
||||
|
||||
@@ -94,10 +94,6 @@ SET_BOOL_PROP(RichardsLensProblem, EnableGravity, true);
|
||||
// Only relinearize the parts where the current solution is sufficiently "bad"
|
||||
SET_BOOL_PROP(RichardsLensProblem, EnablePartialRelinearization, true);
|
||||
|
||||
// Enable re-use of the linearization of the last iteration of the
|
||||
// previous for the first iteration of the current time step?
|
||||
SET_BOOL_PROP(RichardsLensProblem, EnableLinearizationRecycling, true);
|
||||
|
||||
// Use central differences to approximate the Jacobian matrix
|
||||
SET_INT_PROP(RichardsLensProblem, NumericDifferenceMethod, 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user