29 prec.
set(
"type",
"ILUk");
32 solver.
set(
"Preconditioner",prec);
33 solver.
set(
"type",
"gmres");
35 solver.
set(
"maxiters", 1000);
36 solver.
set(
"restarts", 100);
37 solver.
set(
"special1",
"\"&\"");
38 solver.
set(
"special2",
"\'&\'");
39 solver.
set(
"special3",
"\"&\'");
40 solver.
set(
"tol", 1.0e-10);
42 problem.
set(
"Solver",solver);
44 std::cout <<
"*** ParameterList (original)" << std::endl;
45 std::cout << problem << std::endl;
52 std::ostringstream ss;
54 std::string strproblem = ss.str();
56 std::cout <<
"*** XML from ParameterListParameterListWriter.toXML().toString()" << std::endl;
57 std::cout << xmlprob1 << std::endl;
66 std::cout <<
"*** XML from XMLParser.parse()" << std::endl;
67 std::cout << xmlprob2 << std::endl;
73 std::cout <<
"*** ParameterList from XMLParameterListReader.toParameterList()" << std::endl;
74 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.
#define TEST_EQUALITY(v1, v2)
Assert the equality of v1 and v2.
ParameterList & set(std::string const &name, T &&value, std::string const &docString="", RCP< const ParameterEntryValidator > const &validator=null)
Templated set method.
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.