46 #ifndef XPETRA_PARAMETERS_HPP 47 #define XPETRA_PARAMETERS_HPP 49 #include <Teuchos_Describable.hpp> 50 #include <Teuchos_VerboseObject.hpp> 70 const int maxOptions=2;
72 const char* optionNames [maxOptions];
74 std::stringstream documentation;
75 documentation <<
"linear algebra library (Epetra, Tpetra)";
78 #if defined(HAVE_XPETRA_EPETRA) 82 optionNames[nOptions] =
"Epetra";
85 #if defined(HAVE_XPETRA_TPETRA) 89 optionNames[nOptions] =
"Tpetra";
111 std::ostringstream out;
127 out <<
"Linear algebra library: " <<
toString(
lib_) << endl;
std::string toString(Xpetra::UnderlyingLib lib)
Convert a Xpetra::UnderlyingLib to a std::string.
void setCLP(Teuchos::CommandLineProcessor &clp)
void describe(Teuchos::FancyOStream &out, const Teuchos::EVerbosityLevel verbLevel=verbLevel_default) const
Print the object with some verbosity level to an FancyOStream object.
std::string description() const
Return a simple one-line description of this object.
Xpetra::UnderlyingLib lib_
void setOption(const char option_true[], const char option_false[], bool *option_val, const char documentation[]=NULL)
virtual std::string description() const
Xpetra::UnderlyingLib GetLib() const
static const EVerbosityLevel verbLevel_default
Parameters(Teuchos::CommandLineProcessor &clp)