diff --git a/include/utils/parameters.h b/include/utils/parameters.h index db2722ab02..f05628be14 100644 --- a/include/utils/parameters.h +++ b/include/utils/parameters.h @@ -37,7 +37,8 @@ namespace libMesh { /** - * Helper functions for printing scalar, vector and vector types. Called from Parameters::Parameter::print(...). + * Helper functions for printing scalar, vector, vector and vector> + * types. Called from Parameters::Parameter::print(...). */ template void print_helper(std::ostream & os, const P * param); @@ -48,6 +49,9 @@ void print_helper(std::ostream & os, const std::vector

* param); template void print_helper(std::ostream & os, const std::vector> * param); +template +void print_helper(std::ostream & os, const std::vector>> * param); + template void print_helper(std::ostream & os, const std::map * param); @@ -566,6 +570,16 @@ void print_helper(std::ostream & os, const std::vector> * param) os << p << " "; } +//non-member vector> print function +template +void print_helper(std::ostream & os, const std::vector>> * param) +{ + for (const auto & pvv : *param) + for (const auto & pv : pvv) + for (const auto & p : pv) + os << p << " "; +} + //non-member map print function template void print_helper(std::ostream & os, const std::map * param)