34 TEUCHOS_TEST_FOR_EXCEPTION(paramList.isParameter(
"MueLu preconditioner") ==
false,
MueLu::Exceptions::RuntimeError,
"FacadeClassFactory: undefined MueLu preconditioner. Set the \"MueLu preconditioner\" parameter correctly in your input file.");
35 TEUCHOS_TEST_FOR_EXCEPTION(paramList.get<std::string>(
"MueLu preconditioner") ==
"undefined",
MueLu::Exceptions::RuntimeError,
"FacadeClassFactory: undefined MueLu preconditioner. Set the \"MueLu preconditioner\" parameter correctly in your input file.");
37 std::string precMueLu = paramList.get<std::string>(
"MueLu preconditioner");
40 if (facadeClasses_.find(precMueLu) == facadeClasses_.end()) {
41 GetOStream(
Errors) <<
"FacadeClassFactory: Could not find facade class \"" << precMueLu <<
"\"!" << std::endl;
42 GetOStream(
Errors) <<
"The available facade classes are:" << std::endl;
43 for (
typename std::map<std::string, Teuchos::RCP<FacadeClassBase> >::const_iterator it = facadeClasses_.begin(); it != facadeClasses_.end(); it++) {
44 GetOStream(
Errors) <<
" " << it->first << std::endl;
49 return facadeClasses_[precMueLu]->SetParameterList(paramList);