15 #ifdef HAVE_STOKHOS_IFPACK
28 #ifdef HAVE_STOKHOS_IFPACK
32 std::string prec = precParams->get(
"Ifpack Preconditioner",
"ILU");
33 int overlap = precParams->get(
"Overlap", 0);
36 ifpackPrec->SetParameters(*precParams);
37 ifpackPrec->Initialize();
39 ifpackPrec->Compute();
43 "Stokhos::IfpackPreconditionerFactory is available " <<
44 "only with configured with Ifpack support!");
46 #endif // HAVE_STOKHOS_IFPACK
53 #ifdef HAVE_STOKHOS_IFPACK
58 Teuchos::rcp_dynamic_cast<Ifpack_Preconditioner>(prec_op);
64 non_const_prec_crs_mat = *mat;
67 ifpackPrec->Compute();
70 "Stokhos::IfpackPreconditionerFactory is available " <<
71 "only with configured with Ifpack support!");
72 #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.