Belos FGMRES solver does not allow missing right preconditioner
Created by: aprokop
@trilinos/belos @hkthorn
Description
I'm trying to run Belos within a nonlinear JFNK solve. As the operator is not constant, it needs FGMRES. I don't have an implemented preconditioner for it, so running without. However, right now it throws due to the check
if (isFlexible_) {
TEUCHOS_TEST_FOR_EXCEPTION(problem_->getRightPrec()==Teuchos::null,BlockGmresSolMgrLinearProblemFailure,
"Belos::BlockGmresSolMgr::solve(): Linear problem does not have a preconditioner required for flexible GMRES, call setRightPrec().");
}
I'm not sure why that check is there. Removing it seems to run things just fine. My question is if there is something I'm missing here.