74 const std::string n1(
"Match1.xml");
75 Teuchos::updateParametersFromXmlFileAndBroadcast(n1, xmlList.
ptr(), *comm,
true);
76 const std::string n2(
"Match1.yaml");
77 Teuchos::updateParametersFromYamlFileAndBroadcast(n2, yamlList.
ptr(), *comm,
true);
87 std::vector<string> xmlFiles = {
"Match1.xml",
"Match2.xml",
"Match3.xml",
"Match4.xml",
"input_restingHydrostatic_RK4.xml",
"plasma_oscillation_rtc.xml"};
88 for(
size_t i = 0; i < xmlFiles.size(); i++)
90 std::string xmlFile = xmlFiles[i];
91 std::string yamlFile = std::string(
"Proc") + std::to_string(comm->getRank()) +
'-' + xmlFiles[i];
92 yamlFile = yamlFile.substr(0, yamlFile.length() - 4) +
".yaml";
Macros for defining unit tests.
#define TEST_EQUALITY(v1, v2)
Assert the equality of v1 and v2.
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Deprecated.
Templated Parameter List class.
Return a default global communicator appropriate for the build.
Additional ParameterList XML helper functions including parallel support.
A list of parameters of arbitrary type.
TEUCHOS_UNIT_TEST(YAML, XmlEquivalence)
Defines basic traits for the scalar field type.
Smart reference counting pointer class for automatic garbage collection.
std::string convertXmlToYaml(const std::string &xmlFileName)
Teuchos::RCP< Teuchos::ParameterList > getParametersFromYamlFile(const std::string &yamlFileName)
Reference-counted pointer class and non-member templated function implementations.
Ptr< T > ptr() const
Get a safer wrapper raw C++ pointer to the underlying object.
bool haveSameValuesUnordered(const Teuchos::ParameterList &lhs, const Teuchos::ParameterList &rhs, bool verbose)