Skip to content

Commit

Permalink
Using raw pointers for internal use of DAGMC instances
Browse files Browse the repository at this point in the history
  • Loading branch information
pshriwise committed Sep 13, 2023
1 parent dcc7206 commit 37a10fb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/openmc/dagmc.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class DAGSurface : public Surface {
inline void to_hdf5_inner(hid_t group_id) const override {};

// Accessor methods
const std::shared_ptr<moab::DagMC>& dagmc_ptr() const { return dagmc_ptr_; }
moab::DagMC* dagmc_ptr() const { return dagmc_ptr_.get(); }
int32_t dag_index() const { return dag_index_; }

private:
Expand All @@ -71,7 +71,7 @@ class DAGCell : public Cell {
void to_hdf5_inner(hid_t group_id) const override;

// Accessor methods
const std::shared_ptr<moab::DagMC>& dagmc_ptr() const { return dagmc_ptr_; }
moab::DagMC* dagmc_ptr() const { return dagmc_ptr_.get(); }
int32_t dag_index() const { return dag_index_; }

private:
Expand Down Expand Up @@ -156,7 +156,7 @@ class DAGUniverse : public Universe {
//!< universe in OpenMC's surface vector

// Accessors
std::shared_ptr<moab::DagMC> dagmc_ptr() const { return dagmc_instance_; }
moab::DagMC* dagmc_ptr() const { return dagmc_instance_.get(); }
bool has_graveyard() const { return has_graveyard_; }

private:
Expand Down

0 comments on commit 37a10fb

Please sign in to comment.