57 std::string inputFile=
"input.xml";
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);
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;
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;
150 const int local_failed = !(
A ==
B);
151 int global_failed = -1;
164 std::string inputFile=
"inputSpecialChars.xml";
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.
void reduceAll(const Comm< Ordinal > &comm, const ValueTypeReductionOp< Ordinal, Packet > &reductOp, const Ordinal count, const Packet sendBuffer[], Packet globalReducts[])
Wrapper for MPI_Allreduce that takes a custom reduction operator.
static Teuchos::RCP< const Comm< OrdinalType > > getComm()
Return the default global communicator.
A list of parameters of arbitrary type.
TEUCHOSCOMM_LIB_DLL_EXPORT void updateParametersAndBroadcast(const Ptr< ParameterList > &inParamList, const Ptr< ParameterList > &ParamList, const Comm< int > &comm, int root, bool overwrite=true)
On processor rank = root, broadcast the inParamList to all other processors. Then update the given pa...
TEUCHOSPARAMETERLIST_LIB_DLL_EXPORT void updateParametersFromXmlFile(const std::string &xmlFileName, const Ptr< ParameterList > ¶mList)
Reads XML parameters from a file and updates those already in the given parameter list.
TEUCHOSCOMM_LIB_DLL_EXPORT void updateParametersFromXmlFileAndBroadcast(const std::string &xmlFileName, const Ptr< ParameterList > ¶mList, const Comm< int > &comm, bool overwrite=true)
On processor rank = 0, reads XML parameters from a file and broadcasts them to all other processors....
Ptr< T > outArg(T &arg)
create a non-persisting (required or optional) output argument for a function call.
Smart reference counting pointer class for automatic garbage collection.