GRINS-0.8.0
|
This class contains common functions used by various Builders throughout GRINS. More...
#include <builder_helper.h>
Public Member Functions | |
BuilderHelper () | |
~BuilderHelper () | |
Static Public Member Functions | |
static void | parse_var_sections (const GetPot &input, std::set< std::string > §ions) |
Parses the input file for [Variables] first-level subsections. More... | |
static void | parse_var_sections_vector (const GetPot &input, std::vector< std::string > §ions) |
The same as parse_var_sections, except the result is returned in an std::vector. More... | |
This class contains common functions used by various Builders throughout GRINS.
Definition at line 39 of file builder_helper.h.
|
inline |
Definition at line 42 of file builder_helper.h.
|
inline |
Definition at line 43 of file builder_helper.h.
|
static |
Parses the input file for [Variables] first-level subsections.
The expected format for the Variables is
For the example above, this function will fill 'sections' with "Displacement" and "Velocity".
The result is return in an std::set so the actual ordering from the input file is lost.
Definition at line 40 of file builder_helper.C.
References parse_var_sections_vector().
Referenced by GRINS::DefaultBCBuilder::build_bcs(), and GRINSTesting::BuilderHelperTest::test_parse_var_sections().
|
static |
The same as parse_var_sections, except the result is returned in an std::vector.
This allows the maintaining of the order of the Variable subsection in the input file. This is important for things like setting up the Variables in the System so that the user can control the order the variables are added to the system.
Definition at line 52 of file builder_helper.C.
References GRINS::VariablesParsing::variables_section().
Referenced by GRINS::DefaultVariableBuilder::build_variables_impl(), GRINS::ConstrainedPoints::ConstrainedPoints(), and parse_var_sections().