1 #ifndef _my_parameter_handler_h_
2 #define _my_parameter_handler_h_
4 #include <deal.II/base/parameter_handler.h>
6 namespace MyParameterHandler
8 using namespace dealii;
10 template<
typename ItemType>
11 std::vector<ItemType>
get_vector(ParameterHandler &prm, std::string parameter_name)
13 std::vector<std::string> strings = Utilities::split_string_list(prm.get(parameter_name));
15 std::vector<ItemType> items;
17 for (
auto &
string : strings)
19 std::stringstream parser(
string);
22 items.push_back(item);
std::vector< ItemType > get_vector(ParameterHandler &prm, std::string parameter_name)
Definition: my_parameter_handler.h:11