Go to the source code of this file.
|
| registerMooseObject ("MooseApp", MFEMGenericFunctorVectorMaterial) |
|
std::vector< MFEMVectorCoefficientName > | processLiteralVectors (const std::vector< MFEMVectorCoefficientName > &input) |
| Handle any numerical vector values, which should be enclosed in curly braces. More...
|
|
◆ processLiteralVectors()
std::vector<MFEMVectorCoefficientName> processLiteralVectors |
( |
const std::vector< MFEMVectorCoefficientName > & |
input | ) |
|
Handle any numerical vector values, which should be enclosed in curly braces.
Definition at line 19 of file MFEMGenericFunctorVectorMaterial.C.
21 std::vector<MFEMVectorCoefficientName> result;
22 bool in_literal =
false;
23 MFEMVectorCoefficientName literal;
24 for (
const auto & item : input)
28 if (item.front() ==
'{')
29 mooseError(
"Nested numeric vector values are not permitted in " 30 "MFEMGenericFunctorVectoMaterial prop_values.");
31 else if (item.back() ==
'}')
34 literal +=
" " + item.substr(0, item.size() - 1);
35 result.push_back(literal);
38 literal +=
" " + item;
40 else if (item.front() ==
'{')
42 if (item.back() ==
'}')
43 result.push_back(item.substr(1, item.size() - 2));
47 literal = item.substr(1);
51 result.push_back(item);
54 mooseError(
"No closing curly brace for vector value in " 55 "MFEMGenericFunctorVectorMaterial prop_values: '{" +
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application...
◆ registerMooseObject()