mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
BlackoilModelBase: use single precision for solver when dt < 20 days.
This commit is contained in:
parent
e3b578d685
commit
37e49a62c8
@ -250,7 +250,8 @@ namespace detail {
|
||||
const bool converged = asImpl().getConvergence(dt, iteration);
|
||||
const bool must_solve = (iteration < nonlinear_solver.minIter()) || (!converged);
|
||||
if (must_solve) {
|
||||
residual_.singlePrecision = false ;
|
||||
// enable single precision for solvers when dt is smaller then 20 days
|
||||
residual_.singlePrecision = (unit::convert::to(dt, unit::day) < 20.) ;
|
||||
|
||||
// Compute the nonlinear update.
|
||||
V dx = asImpl().solveJacobianSystem();
|
||||
|
Loading…
Reference in New Issue
Block a user