47 #ifdef HAVE_STOKHOS_IFPACK
60 #ifdef HAVE_STOKHOS_IFPACK
64 std::string prec = precParams->get(
"Ifpack Preconditioner",
"ILU");
65 int overlap = precParams->get(
"Overlap", 0);
68 ifpackPrec->SetParameters(*precParams);
69 ifpackPrec->Initialize();
71 ifpackPrec->Compute();
75 "Stokhos::IfpackPreconditionerFactory is available " <<
76 "only with configured with Ifpack support!");
78 #endif // HAVE_STOKHOS_IFPACK
85 #ifdef HAVE_STOKHOS_IFPACK
90 Teuchos::rcp_dynamic_cast<Ifpack_Preconditioner>(prec_op);
96 non_const_prec_crs_mat = *mat;
99 ifpackPrec->Compute();
102 "Stokhos::IfpackPreconditionerFactory is available " <<
103 "only with configured with Ifpack support!");
104 #endif // HAVE_STOKHOS_IFPACK
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
IfpackPreconditionerFactory(const Teuchos::RCP< Teuchos::ParameterList > &p)
Constructor.
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
virtual void recompute(const Teuchos::RCP< Epetra_Operator > &op, const Teuchos::RCP< Epetra_Operator > &prec)
Recompute preconditioner operator for a new matrix.
virtual Teuchos::RCP< Epetra_Operator > compute(const Teuchos::RCP< Epetra_Operator > &op, bool compute_prec=true)
Compute preconditioner.