mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-26 01:01:00 -06:00
lowering the singular limit for the invertMatrix function.
to avoid failure due to singularity detection.
This commit is contained in:
parent
97c51a7d02
commit
53ab8bc132
@ -214,6 +214,7 @@ static inline void invertMatrix (FieldMatrix<K,4,4> &matrix)
|
||||
template <typename K, int n>
|
||||
static inline void invertMatrix (FieldMatrix<K,n,n> &matrix)
|
||||
{
|
||||
Dune::FMatrixPrecision<K>::set_singular_limit(1.e-20);
|
||||
matrix.invert();
|
||||
}
|
||||
|
||||
|
@ -27,7 +27,6 @@
|
||||
#include <opm/autodiff/WellInterface.hpp>
|
||||
#include <opm/autodiff/ISTLSolver.hpp>
|
||||
#include <opm/autodiff/RateConverter.hpp>
|
||||
#include <opm/autodiff/ISTLSolver.hpp>
|
||||
|
||||
namespace Opm
|
||||
{
|
||||
|
@ -1073,7 +1073,6 @@ namespace Opm
|
||||
// If it is under THP control, it will be set to be the target value.
|
||||
// TODO: a better standard is probably whether we have the table to calculate the THP value
|
||||
// TODO: it is something we need to check the output to decide.
|
||||
const PhaseUsage& pu = phaseUsage();
|
||||
const WellControls* wc = well_controls_;
|
||||
// TODO: we should only maintain one current control either from the well_state or from well_controls struct.
|
||||
// Either one can be more favored depending on the final strategy for the initilzation of the well control
|
||||
|
Loading…
Reference in New Issue
Block a user