Skip to content

Commit

Permalink
Per #2856, reinitialize the climo cdf info pointer.
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnHalleyGotway committed Jun 17, 2024
1 parent 4ccaa20 commit 99b6bb3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/tools/core/ensemble_stat/ensemble_stat.cc
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
// 038 09/06/22 Halley Gotway MET #1908 Remove ensemble processing logic.
// 039 09/29/22 Halley Gotway MET #2286 Refine GRIB1 table lookup logic.
// 040 10/03/22 Prestopnik MET #2227 Remove using namespace netCDF from header files
// 041 06/17/24 Halley Gotway MET #2856 Reinitialize climo_cdf pointer
//
////////////////////////////////////////////////////////////////////////

Expand Down Expand Up @@ -2221,6 +2222,7 @@ void do_pct_cat_thresh(const EnsembleStatVxOpt &vx_opt,

// Re-initialize
pd_pnt.erase();
pd_pnt.set_climo_cdf_info_ptr(&vx_opt.cdf_info);

// Process the observations
for(i_obs=0; i_obs<pd_ens.n_obs; i_obs++) {
Expand Down Expand Up @@ -2319,6 +2321,7 @@ void do_pct_cdp_thresh(const EnsembleStatVxOpt &vx_opt,

// Re-initialize
pd_pnt.erase();
pd_pnt.set_climo_cdf_info_ptr(&vx_opt.cdf_info);

// Process the observations
for(i_obs=0; i_obs<pd_ens.n_obs; i_obs++) {
Expand Down

0 comments on commit 99b6bb3

Please sign in to comment.