Commit 6cfb35f5 authored by malossi's avatar malossi
Browse files

Added an additional check for AztecOO preconditioner

parent 59f9d1e8
......@@ -222,12 +222,11 @@ SolverTrilinos::solve( vector_type& x, const vector_type& b )
double mytol (M_tol);
int status;
if ( isPrecSet() )
if ( isPrecSet() && M_prec->precType().compare("AztecOO") )
M_solver.SetPrecOperator(M_prec->getPrec());
status = M_solver.Iterate(maxiter, mytol);
#ifdef DEBUG
M_Displayer.comm().Barrier();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment