Skip to content

Commit a5b0a41

Browse files
authored
Merge branch 'cjvogl-bugfix-duplicate-conditional-eamxx-io' (PR #7594)
Removed what appears to be a duplicate conditional block for the ConditionalSampling diagnostic in eamxx_io_utils
2 parents 65476b0 + af6cee0 commit a5b0a41

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

components/eamxx/src/share/io/eamxx_io_utils.cpp

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ create_diagnostic (const std::string& diag_field_name,
131131
// Note: the number for field_at_p/h can match positive integer/floating-point numbers
132132
// Start with a generic for a field name allowing for all letters, all numbers, dash, dot, plus, minus, product, and division
133133
// 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_.+\\-\\*\\÷]+)";
135135
std::regex field_at_l (R"()" + generic_field + R"(_at_(lev_(\d+)|model_(top|bot))$)");
136136
std::regex field_at_p (R"()" + generic_field + R"(_at_(\d+(\.\d+)?)(hPa|mb|Pa)$)");
137137
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,
239239
params.set<std::string>("condition_operator", matches[3].str());
240240
params.set<std::string>("condition_value", matches[4].str());
241241
}
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-
}
250242
else if (std::regex_search(diag_field_name,matches,binary_ops)) {
251243
diag_name = "BinaryOpsDiag";
252244
params.set("grid_name", grid->name());

0 commit comments

Comments
 (0)