mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
do use eigen's umfpack support anymore
use BiCGStab instead. it might be slower, but at least it is always available...
This commit is contained in:
parent
df2964729a
commit
7139f4addf
@ -27,7 +27,7 @@
|
||||
#include <opm/core/utility/Units.hpp>
|
||||
#include <opm/core/utility/StopWatch.hpp>
|
||||
#include <opm/core/pressure/tpfa/trans_tpfa.h>
|
||||
#include <Eigen/UmfPackSupport>
|
||||
#include <Eigen/IterativeLinearSolvers>
|
||||
|
||||
#include <iostream>
|
||||
#include <cstdlib>
|
||||
@ -202,7 +202,7 @@ int main()
|
||||
// Where R(p0) and J(p0) are contained in residual.value() and
|
||||
// residual.derived()[0].
|
||||
|
||||
Eigen::UmfPackLU<M> solver;
|
||||
Eigen::BiCGSTAB<M> solver;
|
||||
M pmatr = residual.derivative()[0];
|
||||
pmatr.coeffRef(0,0) *= 2.0;
|
||||
pmatr.makeCompressed();
|
||||
|
Loading…
Reference in New Issue
Block a user