From beb3085469581fb7d6954f82f1442c7efcf74518 Mon Sep 17 00:00:00 2001 From: Patrick Shriwise Date: Fri, 13 Jan 2023 12:24:24 -0600 Subject: [PATCH] Changing to const Mesh* --- include/openmc/distribution_spatial.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/openmc/distribution_spatial.h b/include/openmc/distribution_spatial.h index 8840b05396..dda23927e8 100644 --- a/include/openmc/distribution_spatial.h +++ b/include/openmc/distribution_spatial.h @@ -108,7 +108,7 @@ public: //! \return Sampled position Position sample(uint64_t* seed) const; - const unique_ptr& mesh() const { return model::meshes.at(mesh_idx_); } + const Mesh* mesh() const { return model::meshes.at(mesh_idx_).get(); } int32_t n_sources() const { return this->mesh()->n_bins(); }