@@ -131,7 +131,7 @@ create_diagnostic (const std::string& diag_field_name,
131
131
// Note: the number for field_at_p/h can match positive integer/floating-point numbers
132
132
// Start with a generic for a field name allowing for all letters, all numbers, dash, dot, plus, minus, product, and division
133
133
// Escaping all the special ones just in case
134
- std::string generic_field = " ([A-Za-z0-9_.+\\ -\\ *\\ ÷]+)" ;
134
+ std::string generic_field = " ([A-Za-z0-9_.+\\ -\\ *\\ ÷]+)" ;
135
135
std::regex field_at_l (R"( )" + generic_field + R"( _at_(lev_(\d+)|model_(top|bot))$)" );
136
136
std::regex field_at_p (R"( )" + generic_field + R"( _at_(\d+(\.\d+)?)(hPa|mb|Pa)$)" );
137
137
std::regex field_at_h (R"( )" + generic_field + R"( _at_(\d+(\.\d+)?)(m)_above_(sealevel|surface)$)" );
@@ -239,14 +239,6 @@ create_diagnostic (const std::string& diag_field_name,
239
239
params.set <std::string>(" condition_operator" , matches[3 ].str ());
240
240
params.set <std::string>(" condition_value" , matches[4 ].str ());
241
241
}
242
- else if (std::regex_search (diag_field_name,matches,conditional_sampling)) {
243
- diag_name = " ConditionalSampling" ;
244
- params.set (" grid_name" , grid->name ());
245
- params.set <std::string>(" input_field" , matches[1 ].str ());
246
- params.set <std::string>(" condition_field" , matches[2 ].str ());
247
- params.set <std::string>(" condition_operator" , matches[3 ].str ());
248
- params.set <std::string>(" condition_value" , matches[4 ].str ());
249
- }
250
242
else if (std::regex_search (diag_field_name,matches,binary_ops)) {
251
243
diag_name = " BinaryOpsDiag" ;
252
244
params.set (" grid_name" , grid->name ());
0 commit comments