@@ -76,6 +76,13 @@ namespace aspect
76
76
const unsigned int N,
77
77
const std::string &id_text);
78
78
79
+ /* *
80
+ * A namespace that contains options and functions able to parse
81
+ * a map of double values from a string representation of the form
82
+ * "key1 : value1, key2 : value2, etc". The parsing and output
83
+ * is controlled by the Options struct and the parse_map_to_double_array()
84
+ * function.
85
+ */
79
86
namespace MapParsing
80
87
{
81
88
/* *
@@ -84,7 +91,8 @@ namespace aspect
84
91
*/
85
92
struct Options
86
93
{
87
- /* A list of valid key names that are allowed
94
+ /* *
95
+ * A list of valid key names that are allowed
88
96
* to appear in the map. If this list is empty
89
97
* it is assumed to be equal to the list of
90
98
* required keys. If this list is longer than
@@ -94,22 +102,23 @@ namespace aspect
94
102
*/
95
103
std::vector<std::string> list_of_allowed_keys;
96
104
97
- /* A list of valid key names that are required
105
+ /* *
106
+ * A list of valid key names that are required
98
107
* to appear in the map. Only these keys will be
99
108
* parsed into the map structure and the order of
100
109
* these keys determines the order of entries
101
110
* in the output vector.
102
111
*/
103
112
std::vector<std::string> list_of_required_keys;
104
113
105
- /*
114
+ /* *
106
115
* A name that identifies the type of input property (e.g. 'density', 'viscosity')
107
116
* that is being parsed by this function. This name is used in generating
108
117
* error messages if the map does not conform to the expected format.
109
118
*/
110
119
std::string property_name;
111
120
112
- /*
121
+ /* *
113
122
* If true, allow multiple values
114
123
* for each key. If false only allow a single value per key. In either
115
124
* case each key is only allowed to appear once. Multiple values
@@ -125,7 +134,7 @@ namespace aspect
125
134
*/
126
135
bool allow_missing_keys;
127
136
128
- /*
137
+ /* *
129
138
* Whether to store the number of values
130
139
* per key in n_values_per_key while creating
131
140
* the map. This vector can be later accessed
@@ -135,7 +144,7 @@ namespace aspect
135
144
*/
136
145
bool store_values_per_key;
137
146
138
- /*
147
+ /* *
139
148
* Whether to check the number of values
140
149
* per key in the map against values stored
141
150
* in n_values_per_key. This allows to
@@ -145,7 +154,7 @@ namespace aspect
145
154
*/
146
155
bool check_values_per_key;
147
156
148
- /*
157
+ /* *
149
158
* A vector of unsigned
150
159
* integers that is used by store_values_per_key and
151
160
* check_values_per_key to either store the current map
0 commit comments