mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Check for multiple solvers before trying to use them.
This commit is contained in:
parent
758b4bbdb6
commit
efa50c3640
@ -596,11 +596,10 @@ namespace Opm {
|
||||
auto& ebosResid = ebosSimulator_.model().linearizer().residual();
|
||||
auto& ebosSolver = ebosSimulator_.model().newtonMethod().linearSolver();
|
||||
|
||||
std::cerr<<"Hello there!!!"<<std::to_string(ebosSolver.getSolveCount())<<std::endl;
|
||||
if (ebosSolver.getSolveCount()%100==0) {
|
||||
if ((ebosSolver.numAvailableSolvers() > 1) && (ebosSolver.getSolveCount() % 100 == 0)) {
|
||||
|
||||
if ( terminal_output_ ) {
|
||||
OpmLog::debug("Running speed test");
|
||||
OpmLog::debug("Running speed test for comparing available linear solvers.");
|
||||
}
|
||||
Dune::Timer perfTimer;
|
||||
|
||||
|
@ -311,7 +311,7 @@ std::unique_ptr<Matrix> blockJacobiAdjacency(const Grid& grid,
|
||||
|
||||
int numAvailableSolvers()
|
||||
{
|
||||
return activeSolverNum_;
|
||||
return flexibleSolver_.size();
|
||||
}
|
||||
|
||||
void prepare(const SparseMatrixAdapter& M, Vector& b)
|
||||
|
Loading…
Reference in New Issue
Block a user