Skip to content

Commit

Permalink
MueLu Maxwell test: Fix help for precType flag
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Glusa <[email protected]>
  • Loading branch information
cgcgcg committed Dec 10, 2024
1 parent 77bf4c7 commit 77e6090
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions packages/muelu/test/maxwell/Maxwell3D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -326,8 +326,10 @@ bool SetupSolve(std::map<std::string, void*> inputs) {
Belos::ReturnType status = solver->solve();
int iters = solver->getNumIters();
success = (iters < 50 && status == Belos::Converged);
if (status == Belos::Converged)
*out << "Belos converged in " << iters << " iterations." << std::endl;
if (success)
*out << "SUCCESS! Belos converged in " << iters << " iterations." << std::endl;
*out << "SUCCESS!" << std::endl;
else
*out << "FAILURE! Belos did not converge fast enough." << std::endl;
}
Expand All @@ -349,8 +351,10 @@ bool SetupSolve(std::map<std::string, void*> inputs) {
Belos::ReturnType status = solver->solve();
int iters = solver->getNumIters();
success = (iters < 50 && status == Belos::Converged);
if (status == Belos::Converged)
*out << "Belos converged in " << iters << " iterations." << std::endl;
if (success)
*out << "SUCCESS! Belos converged in " << iters << " iterations." << std::endl;
*out << "SUCCESS!" << std::endl;
else
*out << "FAILURE! Belos did not converge fast enough." << std::endl;
}
Expand Down Expand Up @@ -495,7 +499,7 @@ int main_(Teuchos::CommandLineProcessor& clp, Xpetra::UnderlyingLib lib, int arg
std::string belosSolverType = "Block CG";
clp.setOption("belosSolverType", &belosSolverType, "Name of the Belos linear solver");
std::string precType = "MueLu-RefMaxwell";
clp.setOption("precType", &precType, "preconditioner to use (MueLu-RefMaxwell|ML-RefMaxwell|none)");
clp.setOption("precType", &precType, "preconditioner to use (MueLu-RefMaxwell|MueLu-Maxwell1|ML-RefMaxwell|none)");
std::string xml = "";
clp.setOption("xml", &xml, "xml file with solver parameters (default: \"Maxwell.xml\")");
std::string belos_xml = "Belos.xml";
Expand Down

0 comments on commit 77e6090

Please sign in to comment.