Skip to content

Commit

Permalink
Per #1714, fix the logic of the is_match() function.
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnHalleyGotway committed Apr 7, 2021
1 parent d0a774b commit 75a0161
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion met/src/libcode/vx_tc_util/genesis_info.cc
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ bool GenesisInfo::is_match(const GenesisInfo &gi, const double rad,
const int beg, const int end) const {

return(is_bad_data(GenesisIndex) ? false :
is_match((*this)[GenesisIndex], rad, beg, end));
is_match(gi[GenesisIndex], rad, beg, end));
}

////////////////////////////////////////////////////////////////////////
Expand Down
4 changes: 2 additions & 2 deletions met/src/tools/tc_utils/tc_gen/tc_gen.cc
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ void get_genesis_pairs(const TCGenVxOpt &vx_opt,
conf_info.InitFreqHr*sec_per_hour,
vx_opt.InitBeg, vx_opt.InitEnd,
vx_opt.InitInc, vx_opt.InitExc);
}
} // end for i bga

// Loop over the model genesis events looking for pairs.
for(i=0; i<fga.n(); i++) {
Expand Down Expand Up @@ -639,7 +639,7 @@ int find_genesis_match(const GenesisInfo &fcst_gi,
break;
}
}
} // end for bta
} // end for bga

// If no BEST track match was found, search the operational tracks
if(is_bad_data(i_best)) {
Expand Down

0 comments on commit 75a0161

Please sign in to comment.