mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
NewtonIterationBlackoilInterleaved: single precision can be used whether UMFpack is
there or not.
This commit is contained in:
parent
4111797822
commit
e3b578d685
@ -541,15 +541,9 @@ namespace Opm
|
|||||||
{
|
{
|
||||||
// get np and call appropriate template method
|
// get np and call appropriate template method
|
||||||
const int np = residual.material_balance_eq.size();
|
const int np = residual.material_balance_eq.size();
|
||||||
#if ! HAVE_UMFPACK
|
const NewtonIterationBlackoilInterface& newtonIncrement = residual.singlePrecision ?
|
||||||
const bool singlePrecision = residual.singlePrecision ;
|
|
||||||
const NewtonIterationBlackoilInterface& newtonIncrement = singlePrecision ?
|
|
||||||
detail::NewtonIncrement< maxNumberEquations_, float > :: get( newtonIncrementSinglePrecision_, parameters_, parallelInformation_, np ) :
|
detail::NewtonIncrement< maxNumberEquations_, float > :: get( newtonIncrementSinglePrecision_, parameters_, parallelInformation_, np ) :
|
||||||
detail::NewtonIncrement< maxNumberEquations_, double > :: get( newtonIncrementDoublePrecision_, parameters_, parallelInformation_, np );
|
detail::NewtonIncrement< maxNumberEquations_, double > :: get( newtonIncrementDoublePrecision_, parameters_, parallelInformation_, np );
|
||||||
#else
|
|
||||||
const NewtonIterationBlackoilInterface& newtonIncrement =
|
|
||||||
detail::NewtonIncrement< maxNumberEquations_, double > :: get( newtonIncrementDoublePrecision_, parameters_, parallelInformation_, np );
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// compute newton increment
|
// compute newton increment
|
||||||
SolutionVector dx = newtonIncrement.computeNewtonIncrement( residual );
|
SolutionVector dx = newtonIncrement.computeNewtonIncrement( residual );
|
||||||
|
Loading…
Reference in New Issue
Block a user