25 std::string inputFile=
"input.xml";
28 updateParametersFromXmlFile(inputFile, outArg(A));
29 updateParametersFromXmlFileAndBroadcast(inputFile, outArg(B), *comm);
34 const int local_failed = !(A == B);
35 int global_failed = -1;
45 std::string inputFile=
"input.xml";
47 A.
set(
"Transient",
true);
48 A.
set(
"Phalanx Graph Visualization Detail",2);
51 B.
set(
"Transient",
true);
52 B.
set(
"Phalanx Graph Visualization Detail",2);
55 updateParametersFromXmlFile(inputFile, outArg(A));
56 updateParametersFromXmlFileAndBroadcast(inputFile, outArg(B), *comm);
61 const int local_failed = !(A == B);
62 int global_failed = -1;
75 std::string inputFile=
"input.xml";
81 if(comm->getSize() > 1) root = 1;
83 updateParametersFromXmlFile(inputFile, outArg(A));
84 updateParametersAndBroadcast(outArg(A),outArg(B),*comm,root);
89 const int local_failed = !(A == B);
90 int global_failed = -1;
99 std::string inputFile=
"input.xml";
101 A.
set(
"Transient",
true);
102 A.
set(
"Phalanx Graph Visualization Detail",2);
105 B.
set(
"Transient",
true);
106 B.
set(
"Phalanx Graph Visualization Detail",2);
110 if(comm->getSize() > 1) root = 1;
112 updateParametersFromXmlFile(inputFile, outArg(A));
113 updateParametersAndBroadcast(outArg(A),outArg(B),*comm,root);
118 const int local_failed = !(A == B);
119 int global_failed = -1;
132 std::string inputFile=
"inputSpecialChars.xml";
134 updateParametersFromXmlFileAndBroadcast(inputFile, outArg(A), *comm);
138 TEST_EQUALITY( A.get<std::string>(
"sigma"),
"if (x >= 0.0 && y >= 0.0 && x <= 0.5 && y <= 0.5)" );
#define TEST_ASSERT(v1)
Assert the given statement is true.
#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.
static Teuchos::RCP< const Comm< OrdinalType > > getComm()
Return the default global communicator.
TEUCHOS_UNIT_TEST(ConstNonconstObjectContainer, create)
Templated Parameter List class.
#define TEST_EQUALITY_CONST(v1, v2)
Assert the equality of v1 and constant v2.
Additional ParameterList XML helper functions including parallel support.
A list of parameters of arbitrary type.
Smart reference counting pointer class for automatic garbage collection.