HelperClass h;
h.declare_parameters (prm);
- prm.read_input (SOURCE_DIR "/prm/multiple_parameter_loop_01.prm");
+ prm.parse_input (SOURCE_DIR "/prm/multiple_parameter_loop_01.prm");
prm.loop (h);
}
HelperClass h;
h.declare_parameters (prm);
- prm.read_input (p);
+ prm.parse_input (p);
prm.loop (h);
}
Patterns::List(Patterns::Integer(-1,1),2,3));
std::ifstream in(p);
- prm.read_input (in);
+ prm.parse_input (in);
deallog << "test_1=" << prm.get ("test_1") << std::endl;
}
2,3));
std::ifstream in(p);
- prm.read_input (in);
+ prm.parse_input (in);
deallog << "test_13=" << prm.get ("test_13") << std::endl;
2,3, "xyz"));
std::ifstream in(p);
- prm.read_input (in);
+ prm.parse_input (in);
deallog << "test_13=" << prm.get ("test_13") << std::endl;
}
try
{
- foo.read_input("tmp.prm");
+ foo.parse_input("tmp.prm");
}
catch (...)
{
std::stringstream ss(content);
- foo.read_input(ss);
+ foo.parse_input(ss);
foo.leave_subsection();
foo.declare_entry("val2", "2.0", dealii::Patterns::Double(), "");
- foo.read_input(SOURCE_DIR "/parameter_handler_16.prm");
+ foo.parse_input(SOURCE_DIR "/parameter_handler_16.prm");
}
std::ifstream in(p);
- prm.read_input (in);
+ prm.parse_input (in);
deallog << "test_1=" << prm.get ("test_1") << std::endl;
}
Patterns::List(Patterns::Integer(-1,1),2,3));
std::ifstream in(p);
- prm.read_input (in);
+ prm.parse_input (in);
deallog << "test_1=" << prm.get ("test_1") << std::endl;
}
Patterns::List(Patterns::Integer(-1,1),2,3,"xyz"));
std::ifstream in(p);
- prm.read_input (in);
+ prm.parse_input (in);
deallog << "test_1=" << prm.get ("test_1") << std::endl;
}
Patterns::List(Patterns::Selection("a|b|c|d|e|f|g|h")));
prm.leave_subsection ();
- prm.read_input(SOURCE_DIR "/prm/parameter_handler_2.prm");
+ prm.parse_input(SOURCE_DIR "/prm/parameter_handler_2.prm");
std::string list;
prm.enter_subsection ("Testing");
prm.declare_entry ("v", defaults, Patterns::MultipleSelection(defined), "");
std::stringstream in(input);
- prm.read_input (in);
+ prm.parse_input (in);
deallog << "defaults='" << defaults
<< "' defined='" << defined
-// like _02, but use the read_input_from_string function
+// like _02, but use the parse_input_from_string function
#include "../tests.h"
#include <deal.II/base/logstream.h>
input += s;
input += '\n';
}
- prm.read_input_from_string(input.c_str());
+ prm.parse_input_from_string(input.c_str());
std::string list;
prm.enter_subsection ("Testing");
prm.leave_subsection ();
// read and then write parameters
- prm.read_input(SOURCE_DIR "/prm/parameter_handler_3.prm");
+ prm.parse_input(SOURCE_DIR "/prm/parameter_handler_3.prm");
prm.print_parameters (logfile, ParameterHandler::Text);
}
catch (std::exception &exc)
prm.leave_subsection ();
// read and then write parameters
- prm.read_input(SOURCE_DIR "/prm/parameter_handler_3.prm");
+ prm.parse_input(SOURCE_DIR "/prm/parameter_handler_3.prm");
prm.print_parameters (logfile, ParameterHandler::Text);
}
catch (std::exception &exc)
prm.leave_subsection ();
// read and then write parameters
- prm.read_input(SOURCE_DIR "/prm/parameter_handler_3.prm");
+ prm.parse_input(SOURCE_DIR "/prm/parameter_handler_3.prm");
prm.print_parameters (logfile, ParameterHandler::Text);
}
catch (std::exception &exc)
prm.leave_subsection ();
// read and then write parameters
- prm.read_input(SOURCE_DIR "/prm/parameter_handler_3_with_alias_03.prm");
+ prm.parse_input(SOURCE_DIR "/prm/parameter_handler_3_with_alias_03.prm");
prm.print_parameters (logfile, ParameterHandler::Text);
}
catch (std::exception &exc)
prm.leave_subsection ();
// read and then write parameters
- prm.read_input(SOURCE_DIR "/prm/parameter_handler_3_with_alias_04.prm");
+ prm.parse_input(SOURCE_DIR "/prm/parameter_handler_3_with_alias_04.prm");
prm.print_parameters (logfile, ParameterHandler::Text);
}
catch (std::exception &exc)
prm.leave_subsection ();
// read and then write parameters
- prm.read_input(SOURCE_DIR "/prm/parameter_handler_3_with_space.prm");
+ prm.parse_input(SOURCE_DIR "/prm/parameter_handler_3_with_space.prm");
prm.print_parameters (logfile, ParameterHandler::Text);
}
catch (std::exception &exc)
// parameters. take same input file
// as for parameter_handler_3, but
// use different output format
- prm.read_input(SOURCE_DIR "/prm/parameter_handler_3.prm");
+ prm.parse_input(SOURCE_DIR "/prm/parameter_handler_3.prm");
prm.print_parameters (logfile, ParameterHandler::LaTeX);
}
catch (std::exception &exc)
// parameters. take same input file
// as for parameter_handler_3, but
// use different output format
- prm.read_input(SOURCE_DIR "/prm/parameter_handler_3.prm");
+ prm.parse_input(SOURCE_DIR "/prm/parameter_handler_3.prm");
prm.print_parameters (logfile, ParameterHandler::LaTeX);
}
catch (std::exception &exc)
// parameters. take same input file
// as for parameter_handler_3, but
// use different output format
- prm.read_input(SOURCE_DIR "/prm/parameter_handler_3.prm");
+ prm.parse_input(SOURCE_DIR "/prm/parameter_handler_3.prm");
prm.print_parameters (logfile, ParameterHandler::LaTeX);
}
catch (std::exception &exc)
// parameters. take same input file
// as for parameter_handler_3, but
// use different output format
- prm.read_input(SOURCE_DIR "/prm/parameter_handler_3.prm");
+ prm.parse_input(SOURCE_DIR "/prm/parameter_handler_3.prm");
prm.print_parameters (logfile, ParameterHandler::LaTeX);
}
catch (std::exception &exc)
"docs 3");
prm.leave_subsection ();
- prm.read_input(SOURCE_DIR "/prm/parameter_handler_3.prm");
+ prm.parse_input(SOURCE_DIR "/prm/parameter_handler_3.prm");
// now set some of the entries to
// different values
"docs 1");
prm.leave_subsection ();
- prm.read_input(SOURCE_DIR "/prm/parameter_handler_6_bool.prm");
+ prm.parse_input(SOURCE_DIR "/prm/parameter_handler_6_bool.prm");
// now set the parameter to a different
// value
// parameters. take same input file
// as for parameter_handler_3, but
// use different output format
- prm.read_input(SOURCE_DIR "/prm/parameter_handler_3.prm");
+ prm.parse_input(SOURCE_DIR "/prm/parameter_handler_3.prm");
prm.print_parameters (logfile, ParameterHandler::Description);
}
catch (std::exception &exc)
// parameters. take same input file
// as for parameter_handler_3, but
// use different output format
- prm.read_input(SOURCE_DIR "/prm/parameter_handler_8.prm");
+ prm.parse_input(SOURCE_DIR "/prm/parameter_handler_8.prm");
prm.print_parameters (logfile, ParameterHandler::Text);
}
catch (std::exception &exc)
// parameters. take same input file
// as for parameter_handler_3, but
// use different output format
- prm.read_input(SOURCE_DIR "/prm/parameter_handler_8.prm");
+ prm.parse_input(SOURCE_DIR "/prm/parameter_handler_8.prm");
prm.log_parameters (deallog);
}
catch (std::exception &exc)
std::ifstream in(p);
deallog << "Reading parameters" << std::endl;
- prm.read_input (in);
+ prm.parse_input (in);
deallog << "test_1=" << prm.get ("test_1") << std::endl;
deallog << "Saved parameter: " << parameter_set_by_action << std::endl;
std::ifstream in(p);
deallog << "Reading parameters" << std::endl;
- prm.read_input (in);
+ prm.parse_input (in);
deallog << "test_1=" << prm.get ("test_1") << std::endl;
deallog << "Saved parameter: " << parameter_set_by_action << std::endl;
Patterns::List(Patterns::Selection("a|b|c|d|e|f|g|h")));
prm.leave_subsection ();
- // test both relevant read_input functions
+ // test both relevant parse_input functions
if (i == 0)
{
- prm.read_input(SOURCE_DIR "/prm/parameter_handler_backslash_01.prm");
+ prm.parse_input(SOURCE_DIR "/prm/parameter_handler_backslash_01.prm");
}
else
{
std::ifstream input_stream
(SOURCE_DIR "/prm/parameter_handler_backslash_01.prm");
- prm.read_input(input_stream);
+ prm.parse_input(input_stream);
}
std::string list;
Patterns::List(Patterns::Selection("a|b|c|d|e|f|g|h")));
prm.leave_subsection ();
- // test both relevant read_input functions
+ // test both relevant parse_input functions
if (i == 0)
{
- prm.read_input(SOURCE_DIR "/prm/parameter_handler_backslash_02.prm");
+ prm.parse_input(SOURCE_DIR "/prm/parameter_handler_backslash_02.prm");
}
else
{
std::ifstream input_stream
(SOURCE_DIR "/prm/parameter_handler_backslash_02.prm");
- prm.read_input(input_stream);
+ prm.parse_input(input_stream);
}
std::string list;
Patterns::List(Patterns::Selection("a|b|c|d|e|f|g|h")));
prm.leave_subsection ();
- // test both relevant read_input functions
+ // test both relevant parse_input functions
if (i == 0)
{
- prm.read_input(SOURCE_DIR "/prm/parameter_handler_backslash_06.prm");
+ prm.parse_input(SOURCE_DIR "/prm/parameter_handler_backslash_06.prm");
}
else
{
std::ifstream input_stream
(SOURCE_DIR "/prm/parameter_handler_backslash_06.prm");
- prm.read_input(input_stream);
+ prm.parse_input(input_stream);
}
std::string list;
prm.declare_entry ("value", "value", Patterns::Anything());
prm.leave_subsection ();
- // test both relevant read_input functions
+ // test both relevant parse_input functions
if (i == 0)
{
- prm.read_input(SOURCE_DIR "/prm/parameter_handler_backslash_07.prm");
+ prm.parse_input(SOURCE_DIR "/prm/parameter_handler_backslash_07.prm");
}
else
{
std::ifstream input_stream
(SOURCE_DIR "/prm/parameter_handler_backslash_07.prm");
- prm.read_input(input_stream);
+ prm.parse_input(input_stream);
}
std::string list;
prm.declare_entry ("value", "value", Patterns::Anything());
prm.leave_subsection ();
- // test both relevant read_input functions
+ // test both relevant parse_input functions
if (i == 0)
{
- prm.read_input(SOURCE_DIR "/prm/parameter_handler_backslash_08.prm");
+ prm.parse_input(SOURCE_DIR "/prm/parameter_handler_backslash_08.prm");
}
else
{
std::ifstream input_stream
(SOURCE_DIR "/prm/parameter_handler_backslash_08.prm");
- prm.read_input(input_stream);
+ prm.parse_input(input_stream);
}
std::string list;
-// check ParameterHandler::read_input_from_xml. try to read a file that is not
+// check ParameterHandler::parse_input_from_xml. try to read a file that is not
// valid XML (there is more than one top-level element)
#include "../tests.h"
{
ParameterHandler prm;
declare_parameters(prm);
- prm.read_input(input_file);
+ prm.parse_input(input_file);
parse_parameters(prm);
}
void AllParameters::declare_parameters(ParameterHandler &prm)
{
ParameterHandler prm;
declare_parameters(prm);
- prm.read_input(input_file);
+ prm.parse_input(input_file);
parse_parameters(prm);
}
void AllParameters::declare_parameters(ParameterHandler &prm)
{
ParameterHandler prm;
declare_parameters(prm);
- prm.read_input(input_file);
+ prm.parse_input(input_file);
parse_parameters(prm);
}
void AllParameters::declare_parameters(ParameterHandler &prm)