57 std::string inputFile=
"input.xml";
60 updateParametersFromXmlFile(inputFile, outArg(
A));
61 updateParametersFromXmlFileAndBroadcast(inputFile, outArg(
B), *comm);
66 const int local_failed = !(
A ==
B);
67 int global_failed = -1;
77 std::string inputFile=
"input.xml";
79 A.set(
"Transient",
true);
80 A.set(
"Phalanx Graph Visualization Detail",2);
83 B.set(
"Transient",
true);
84 B.set(
"Phalanx Graph Visualization Detail",2);
87 updateParametersFromXmlFile(inputFile, outArg(
A));
88 updateParametersFromXmlFileAndBroadcast(inputFile, outArg(
B), *comm);
93 const int local_failed = !(
A ==
B);
94 int global_failed = -1;
107 std::string inputFile=
"input.xml";
113 if(comm->getSize() > 1) root = 1;
115 updateParametersFromXmlFile(inputFile, outArg(
A));
116 updateParametersAndBroadcast(outArg(
A),outArg(
B),*comm,root);
121 const int local_failed = !(
A ==
B);
122 int global_failed = -1;
131 std::string inputFile=
"input.xml";
133 A.set(
"Transient",
true);
134 A.set(
"Phalanx Graph Visualization Detail",2);
137 B.set(
"Transient",
true);
138 B.set(
"Phalanx Graph Visualization Detail",2);
142 if(comm->getSize() > 1) root = 1;
144 updateParametersFromXmlFile(inputFile, outArg(
A));
145 updateParametersAndBroadcast(outArg(
A),outArg(
B),*comm,root);
150 const int local_failed = !(
A ==
B);
151 int global_failed = -1;
164 std::string inputFile=
"inputSpecialChars.xml";
166 updateParametersFromXmlFileAndBroadcast(inputFile, outArg(
A), *comm);
170 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_CONST(v1, v2)
Assert the equality of v1 and constant v2.
#define TEST_EQUALITY(v1, v2)
Assert the equality of v1 and v2.
Templated Parameter List class.
#define TEUCHOS_UNIT_TEST(TEST_GROUP, TEST_NAME)
Macro for defining a (non-templated) unit test.
Additional ParameterList XML helper functions including parallel support.
static Teuchos::RCP< const Comm< OrdinalType > > getComm()
Return the default global communicator.
A list of parameters of arbitrary type.
Smart reference counting pointer class for automatic garbage collection.