mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-28 17:04:23 -06:00
revert Schur fix.
This commit is contained in:
parent
a8c0f7df92
commit
c2e6b368ae
@ -247,8 +247,7 @@ namespace Opm
|
||||
// std::cout << "++++++++++++++++++++++++++++++++++++++++++++\n"
|
||||
// << D
|
||||
// << "++++++++++++++++++++++++++++++++++++++++++++\n" << std::endl;
|
||||
std::cerr << "WARNING (ignored): Cannot do Schur complement with respect to non-diagonal block." << std::endl;
|
||||
//OPM_THROW(std::logic_error, "Cannot do Schur complement with respect to non-diagonal block.");
|
||||
OPM_THROW(std::logic_error, "Cannot do Schur complement with respect to non-diagonal block.");
|
||||
}
|
||||
V diag = D.diagonal();
|
||||
Eigen::DiagonalMatrix<double, Eigen::Dynamic> invD = (1.0 / diag).matrix().asDiagonal();
|
||||
@ -303,8 +302,7 @@ namespace Opm
|
||||
// Find inv(D).
|
||||
const M& D = equation.derivative()[n];
|
||||
if (!isDiagonal(D)) {
|
||||
std::cerr << "WARNING (ignored): Cannot do Schur complement with respect to non-diagonal block." << std::endl;
|
||||
//OPM_THROW(std::logic_error, "Cannot do Schur complement with respect to non-diagonal block.");
|
||||
OPM_THROW(std::logic_error, "Cannot do Schur complement with respect to non-diagonal block.");
|
||||
}
|
||||
V diag = D.diagonal();
|
||||
Eigen::DiagonalMatrix<double, Eigen::Dynamic> invD = (1.0 / diag).matrix().asDiagonal();
|
||||
|
Loading…
Reference in New Issue
Block a user