49 int main(
int argc,
char* argv[])
60 out = Teuchos::VerboseObjectBase::getDefaultOStream();
68 std::string inputFile =
"";
69 std::string extraParams =
"";
72 CommandLineProcessor clp(
false);
73 clp.addOutputSetupOptions(
true);
74 clp.setOption(
"input-file", &inputFile,
"Input file [Required].",
true );
75 clp.setOption(
"extra-params", &extraParams,
"Extra parameters overriding the parameters read in from --input-file");
77 "Testing program for Trilinos (and non-Trilinos) linear solvers access through Thyra."
80 CommandLineProcessor::EParseCommandLineReturn parse_return = clp.parse(argc,argv);
81 if( parse_return != CommandLineProcessor::PARSE_SUCCESSFUL )
return parse_return;
84 if(verbose) *out <<
"\nReading parameters from XML file \""<<inputFile<<
"\" ...\n";
85 Teuchos::updateParametersFromXmlFile(inputFile, Teuchos::inOutArg(paramList));
86 if(extraParams.length()) {
87 if(verbose) *out <<
"\nAppending extra parameters from the XML string \""<<extraParams<<
"\" ...\n";
88 Teuchos::updateParametersFromXmlString(extraParams, Teuchos::inOutArg(paramList));
93 ¶mList, dumpAll, verbose?&*out:0
100 if(success) *out <<
"\nCongratulations! All of the tests checked out!\n";
101 else *out <<
"\nOh no! At least one of the tests failed!\n";
104 return ( success ? EXIT_SUCCESS : EXIT_FAILURE );
int main(int argc, char *argv[])
#define TEUCHOS_STANDARD_CATCH_STATEMENTS(VERBOSE, ERR_STREAM, SUCCESS_FLAG)
bool test_single_stratimikos_solver(Teuchos::ParameterList *paramList, const bool dumpAll, Teuchos::FancyOStream *out)
Testing function for a single stratimikos solver for a single matrix.