Revision 7ecfd21e446422ee89338b574f7d0799be632330 authored by Tom Fischer on 13 July 2023, 16:24:13 UTC, committed by Tom Fischer on 13 July 2023, 16:24:13 UTC
Pass fixed output times to time stepper

See merge request ogs/ogs!4652
2 parent s 1630a2b + 6b93e41
Raw File
TestTools.cpp
/**
 * \file
 * \copyright
 * Copyright (c) 2012-2023, OpenGeoSys Community (http://www.opengeosys.org)
 *            Distributed under a Modified BSD License.
 *              See accompanying file LICENSE.txt or
 *              http://www.opengeosys.org/project/license
 *
 */

#include "Tests/TestTools.h"

#include <boost/property_tree/xml_parser.hpp>

namespace Tests
{
boost::property_tree::ptree readXml(const char xml[])
{
    boost::property_tree::ptree ptree;
    std::istringstream xml_str(xml);
    boost::property_tree::read_xml(
        xml_str, ptree,
        boost::property_tree::xml_parser::no_comments |
            boost::property_tree::xml_parser::trim_whitespace);
    return ptree;
}

}  // namespace Tests
back to top