60 Teuchos::RCP<Epetra_LinearProblem> problem)
62 Teuchos::ParameterList azparams;
63 if (test_params.isSublist(
"AztecOO")) {
64 azparams = test_params.sublist(
"AztecOO");
67 Teuchos::RCP<AztecOO> solver = Teuchos::rcp(
new AztecOO);
69 solver->SetProblem(*problem);
71 solver->SetParameters(azparams);
73 std::string ifpack_precond(
"not specified");
75 if (ifpack_precond !=
"not specified") {
79 if (test_params.isSublist(
"Ifpack")) {
80 Teuchos::ParameterList& ifparams = test_params.sublist(
"Ifpack");
83 Teuchos::Time prec_time(
"precond");
85 precond->Initialize();
88 int my_proc = problem->GetMatrix()->RowMatrixRowMap().Comm().MyPID();
90 std::cout <<
"Time to initialize/compute preconditioner: " << prec_time.totalElapsedTime() <<
"s" << std::endl;
93 solver->SetPrecOperator(precond);