Skip to content

Commit 36fffa4

Browse files
committed
Updated initialization code
1 parent d0573b4 commit 36fffa4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/stochtree/tree_sampler.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,8 @@ class MCMCForestSampler {
240240

241241
// Copy previous forest
242242
forests.CopyFromPreviousSample(prev_num_samples, prev_num_samples - 1);
243+
} else {
244+
forests.IncrementSampleCount();
243245
}
244246

245247
// Run the MCMC algorithm for each tree

0 commit comments

Comments
 (0)