Skip to content

Commit

Permalink
Per #1875, fix set_cdf_ta() to initialized cdf_ta prior to initializi…
Browse files Browse the repository at this point in the history
…ng it. (#1876)
  • Loading branch information
JohnHalleyGotway authored Aug 16, 2021
1 parent 521dbb1 commit 5c9db2d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions met/src/basic/vx_config/config_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1493,6 +1493,9 @@ void ClimoCDFInfo::set_cdf_ta(int n_bin, bool &center) {
exit(1);
}

// Initialize
cdf_ta.clear();

// Even number of bins cannot be centered
if(n_bin%2 == 0 && center) {
mlog << Warning << "\nClimoCDFInfo::set_cdf_ta() -> "
Expand Down

0 comments on commit 5c9db2d

Please sign in to comment.