Skip to content

Commit

Permalink
Per #2366, missing a couple of else blocks.
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnHalleyGotway committed Dec 7, 2022
1 parent c98e9c4 commit 9b4ee08
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/libcode/vx_data2d/var_info.cc
Original file line number Diff line number Diff line change
Expand Up @@ -937,7 +937,7 @@ ConcatString raw_magic_str(Dictionary i_edict, GrdFileType file_type) {
bool is_req_level_match(const ConcatString &s1, const ConcatString &s2) {
bool match = true;

// No match if either is non-empty and they are not equal.
// No match if either is non-empty and they are not equal
if((s1.nonempty() || s2.nonempty()) && !(s1 == s2)) match = false;

return(match);
Expand Down
9 changes: 6 additions & 3 deletions src/tools/core/grid_stat/grid_stat_conf_info.cc
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ void GridStatConfInfo::process_config(GrdFileType ftype,
<< "Using the first match found. Set the \"level\" strings to "
<< "differentiate between them.\n\n";
}
// Use the first match
else {
vx_opt[i].fcst_info->set_uv_index(j);
vx_opt[i].obs_info->set_uv_index(j);
Expand Down Expand Up @@ -237,9 +238,11 @@ void GridStatConfInfo::process_config(GrdFileType ftype,
<< "Using the first match found. Set the \"level\" strings to "
<< "differentiate between them.\n\n";
}

vx_opt[i].fcst_info->set_uv_index(j);
vx_opt[i].obs_info->set_uv_index(j);
// Use the first match
else {
vx_opt[i].fcst_info->set_uv_index(j);
vx_opt[i].obs_info->set_uv_index(j);
}
}
}

Expand Down
9 changes: 6 additions & 3 deletions src/tools/core/point_stat/point_stat_conf_info.cc
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,11 @@ void PointStatConfInfo::process_config(GrdFileType ftype) {
<< "Using the first match found. Set the \"level\" strings to "
<< "differentiate between them.\n\n";
}

vx_opt[i].vx_pd.fcst_info->set_uv_index(j);
vx_opt[i].vx_pd.obs_info->set_uv_index(j);
// Use the first match
else {
vx_opt[i].vx_pd.fcst_info->set_uv_index(j);
vx_opt[i].vx_pd.obs_info->set_uv_index(j);
}
}
}

Expand Down Expand Up @@ -230,6 +232,7 @@ void PointStatConfInfo::process_config(GrdFileType ftype) {
<< "Using the first match found. Set the \"level\" strings to "
<< "differentiate between them.\n\n";
}
// Use the first match
else {
vx_opt[i].vx_pd.fcst_info->set_uv_index(j);
vx_opt[i].vx_pd.obs_info->set_uv_index(j);
Expand Down

0 comments on commit 9b4ee08

Please sign in to comment.