61 prec.
set(
"type",
"ILUk");
64 solver.
set(
"Preconditioner",prec);
65 solver.
set(
"type",
"gmres");
67 solver.
set(
"maxiters", 1000);
68 solver.
set(
"restarts", 100);
69 solver.
set(
"special1",
"\"&\"");
70 solver.
set(
"special2",
"\'&\'");
71 solver.
set(
"special3",
"\"&\'");
72 solver.
set(
"tol", 1.0e-10);
74 problem.
set(
"Solver",solver);
76 std::cout <<
"*** ParameterList (original)" << std::endl;
77 std::cout << problem << std::endl;
84 std::ostringstream ss;
86 std::string strproblem = ss.str();
88 std::cout <<
"*** XML from ParameterListParameterListWriter.toXML().toString()" << std::endl;
89 std::cout << xmlprob1 << std::endl;
98 std::cout <<
"*** XML from XMLParser.parse()" << std::endl;
99 std::cout << xmlprob2 << std::endl;
105 std::cout <<
"*** ParameterList from XMLParameterListReader.toParameterList()" << std::endl;
106 std::cout << problem2 << std::endl;
Writes an XML object to a parameter list.
XMLObject toXML(const ParameterList &p, RCP< const DependencySheet > depSheet=null) const
#define TEST_NOTHROW(code)
Asserr that the statement 'code' does not thrown any excpetions.
T & get(const std::string &name, T def_value)
Return the parameter's value, or the default value if it is not there.
ParameterList & set(std::string const &name, T const &value, std::string const &docString="", RCP< const ParameterEntryValidator > const &validator=null)
Set a parameter whose value has type T.
#define TEST_EQUALITY(v1, v2)
Assert the equality of v1 and v2.
XMLParser consumes characters from an XMLInputStream object, parsing the XML and using a TreeBuilding...
TEUCHOS_UNIT_TEST(ConstNonconstObjectContainer, create)
Representation of an XML data tree. XMLObject is a ref-counted handle to a XMLObjectImplem object...
Writes a ParameterList to an XML object.
RCP< ParameterList > toParameterList(const XMLObject &xml, RCP< DependencySheet > depSheet) const
A list of parameters of arbitrary type.
Writes an XML object to a parameter list.
A class providing a simple XML parser. Methods can be overloaded to exploit external XML parsing libr...
Writes a ParameterList to an XML object.