Skip to content

Commit

Permalink
Fix for #1195 to check for 0 fcst.field or obs.field entries.
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnHalleyGotway committed Sep 13, 2019
1 parent 3b1255d commit 278adb9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -272,7 +272,7 @@ void EnsembleStatConfInfo::process_config(GrdFileType etype,
n_vx = parse_conf_n_vx(fdict);

// Check for a valid number of verification tasks
if(parse_conf_n_vx(odict) != n_vx) {
if(n_vx == 0 || parse_conf_n_vx(odict) != n_vx) {
mlog << Error << "\nEnsembleStatConfInfo::process_config() -> "
<< "The number of verification tasks in \""
<< conf_key_obs_field
Expand Down
2 changes: 1 addition & 1 deletion met/src/tools/core/grid_stat/grid_stat_conf_info.cc
Expand Up @@ -143,7 +143,7 @@ void GridStatConfInfo::process_config(GrdFileType ftype,
n_ovx = parse_conf_n_vx(odict);

// Check for a valid number of verification tasks
if(n_fvx != n_ovx) {
if(n_fvx == 0 || n_fvx != n_ovx) {
mlog << Error << "\nGridStatConfInfo::process_config() -> "
<< "The number of verification tasks in \""
<< conf_key_obs_field << "\" (" << n_ovx
Expand Down

0 comments on commit 278adb9

Please sign in to comment.