47 #ifdef HAVE_STOKHOS_ML
48 #include "ml_include.h"
49 #include "ml_MultiLevelPreconditioner.h"
56 #ifdef HAVE_STOKHOS_ML
60 ML_Epetra::SetDefaults(
precParams->
get<std::string>(
"default values"),
70 #ifdef HAVE_STOKHOS_ML
72 Teuchos::rcp_dynamic_cast<Epetra_RowMatrix>(op,
true);
74 Teuchos::rcp(
new ML_Epetra::MultiLevelPreconditioner(*mat, *precParams,
80 "Stokhos::MLPreconditionerFactory is available " <<
81 "only with configured with ML support!");
83 #endif // HAVE_STOKHOS_ML
90 #ifdef HAVE_STOKHOS_ML
93 Teuchos::rcp_dynamic_cast<Epetra_CrsMatrix>(op,
true);
95 Teuchos::rcp_dynamic_cast<ML_Epetra::MultiLevelPreconditioner>(prec_op);
98 dynamic_cast<const Epetra_CrsMatrix&>(prec_mat);
100 const_cast<Epetra_CrsMatrix&>(prec_crs_mat);
101 non_const_prec_crs_mat = *mat;
104 ml_prec->ComputePreconditioner();
107 "Stokhos::MLPreconditionerFactory is available " <<
108 "only with configured with ML support!");
109 #endif // HAVE_STOKHOS_ML