mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Only print warning that cusparseSolver did not converge if it was chosen with --use-gpu=true
This commit is contained in:
parent
b355537e04
commit
13e524dba2
@ -475,7 +475,10 @@ protected:
|
||||
bdaBridge->get_result(x);
|
||||
}else{
|
||||
// CPU fallback, or default case for Dune
|
||||
OpmLog::warning("cusparseSolver did not converge, now trying Dune to solve current linear system...");
|
||||
const bool use_gpu = EWOMS_GET_PARAM(TypeTag, bool, UseGpu);
|
||||
if(use_gpu){
|
||||
OpmLog::warning("cusparseSolver did not converge, now trying Dune to solve current linear system...");
|
||||
}
|
||||
auto precond = constructPrecond(linearOperator, parallelInformation_arg);
|
||||
solve(linearOperator, x, istlb, *sp, *precond, result);
|
||||
} // end Dune call
|
||||
|
Loading…
Reference in New Issue
Block a user