Skip to content

Commit

Permalink
Fixed parameter management bugs in RandFGMRES and FGMRES classes.
Browse files Browse the repository at this point in the history
  • Loading branch information
pelesh committed Jun 13, 2024
1 parent db597be commit 4f83647
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion resolve/LinSolverIterativeFGMRES.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ namespace ReSolve
setRestart(atoi(value.c_str()));
break;
case CONV_COND:
setRestart(atoi(value.c_str()));
setConvCond(atoi(value.c_str()));
break;
case FLEXIBLE:
bool is_flexible = (value == "yes");
Expand Down Expand Up @@ -474,6 +474,7 @@ namespace ReSolve
{
case FLEXIBLE:
value = getFlexible();
break;
default:
out::error() << "Unknown boolean parameter " << id << "\n";
return 1;
Expand All @@ -491,6 +492,9 @@ namespace ReSolve
case MAXIT:
std::cout << getMaxit() << "\n";
break;
case RESTART:
std::cout << getRestart() << "\n";
break;
default:
out::error() << "Unknown parameter " << id << "\n";
return 1;
Expand Down
6 changes: 5 additions & 1 deletion resolve/LinSolverIterativeRandFGMRES.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ namespace ReSolve
setRestart(atoi(value.c_str()));
break;
case CONV_COND:
setRestart(atoi(value.c_str()));
setConvCond(atoi(value.c_str()));
break;
case FLEXIBLE:
bool is_flexible = (value == "yes");
Expand Down Expand Up @@ -580,6 +580,7 @@ namespace ReSolve
{
case FLEXIBLE:
value = getFlexible();
break;
default:
out::error() << "Unknown boolean parameter " << id << "\n";
return 1;
Expand All @@ -597,6 +598,9 @@ namespace ReSolve
case MAXIT:
std::cout << getMaxit() << "\n";
break;
case RESTART:
std::cout << getRestart() << "\n";
break;
default:
out::error() << "Unknown parameter " << id << "\n";
return 1;
Expand Down

0 comments on commit 4f83647

Please sign in to comment.