Skip to content

Commit

Permalink
Ensure formatting of output is same for adapt=false samplers
Browse files Browse the repository at this point in the history
  • Loading branch information
WardBrian committed Jun 27, 2024
1 parent b667579 commit c780daf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/stan/services/sample/hmc_nuts_dense_e.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ int hmc_nuts_dense_e(Model& model, size_t num_chains,
util::run_sampler(samplers[i], model, cont_vectors[i], num_warmup,
num_samples, num_thin, refresh, save_warmup,
rngs[i], interrupt, logger, sample_writer[i],
diagnostic_writer[i], init_chain_id + i);
diagnostic_writer[i], init_chain_id + i, num_chains);
}
},
tbb::simple_partitioner());
Expand Down
2 changes: 1 addition & 1 deletion src/stan/services/sample/hmc_nuts_diag_e.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ int hmc_nuts_diag_e(Model& model, size_t num_chains,
util::run_sampler(samplers[i], model, cont_vectors[i], num_warmup,
num_samples, num_thin, refresh, save_warmup,
rngs[i], interrupt, logger, sample_writer[i],
diagnostic_writer[i], init_chain_id + i);
diagnostic_writer[i], init_chain_id + i, num_chains);
}
},
tbb::simple_partitioner());
Expand Down

0 comments on commit c780daf

Please sign in to comment.