Skip to content

Commit 1c720e2

Browse files
Fix segfault issue.
1 parent 086788b commit 1c720e2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/bgmCompare_parallel.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ using namespace RcppParallel;
1515
// -----------------------------------------------------------------------------
1616
// Worker: runs chains [begin, end) in parallel.
1717
// -----------------------------------------------------------------------------
18-
struct GibbsChainRunner : public Worker {
18+
struct GibbsCompareChainRunner : public Worker {
1919
// immutable shared inputs (masters)
2020
const arma::imat observations_master;
2121
const int num_groups;
@@ -57,7 +57,7 @@ struct GibbsChainRunner : public Worker {
5757
// shared output (one slot per chain index)
5858
Rcpp::List& output;
5959

60-
GibbsChainRunner(
60+
GibbsCompareChainRunner(
6161
arma::imat observations_master_,
6262
const int num_groups_,
6363
const std::vector<arma::imat>& num_obs_categories_cpp_master_,
@@ -240,7 +240,7 @@ Rcpp::List run_bgmCompare_parallel(
240240
Rcpp::List out(num_chains);
241241

242242
// Build worker
243-
GibbsChainRunner worker(
243+
GibbsCompareChainRunner worker(
244244
observations, num_groups,
245245
num_obs_categories_cpp,
246246
sufficient_blume_capel_cpp,

0 commit comments

Comments
 (0)