diff --git a/include/openmc/cell.h b/include/openmc/cell.h index 0b13eef574..b941acd7f6 100644 --- a/include/openmc/cell.h +++ b/include/openmc/cell.h @@ -113,7 +113,6 @@ public: explicit Cell(pugi::xml_node cell_node); Cell() {}; - //! \brief Determine if a cell contains the particle at a given location. //! //! The bounds of the cell are detemined by a logical expression involving @@ -144,6 +143,7 @@ public: //! @param group_id An HDF5 group id. virtual void to_hdf5(hid_t group_id) const = 0; + virtual ~Cell() {} }; class CSGCell : public Cell @@ -162,6 +162,8 @@ public: void to_hdf5(hid_t group_id) const; + + protected: bool contains_simple(Position r, Direction u, int32_t on_surface) const; bool contains_complex(Position r, Direction u, int32_t on_surface) const; @@ -172,7 +174,7 @@ class DAGCell : public Cell { public: moab::DagMC *dagmc_ptr_; - explicit DAGCell(); + DAGCell(); std::pair distance(Position p, Direction u, int32_t on_surface) const; bool contains(Position p, Direction u, int32_t on_surface) const; diff --git a/include/openmc/surface.h b/include/openmc/surface.h index 9c3df89808..3f2b4d14b5 100644 --- a/include/openmc/surface.h +++ b/include/openmc/surface.h @@ -76,7 +76,7 @@ public: std::vector neighbor_neg_; //!< List of cells on negative side explicit Surface(pugi::xml_node surf_node); - explicit Surface(); + Surface(); virtual ~Surface() {} @@ -124,7 +124,7 @@ class CSGSurface : public Surface { public: explicit CSGSurface(pugi::xml_node surf_node); - explicit CSGSurface(); + CSGSurface(); void to_hdf5(hid_t group_id) const; @@ -140,7 +140,7 @@ class DAGSurface : public Surface { public: moab::DagMC* dagmc_ptr_; - explicit DAGSurface(); + DAGSurface(); double evaluate(Position p) const; double distance(Position p, Direction u, bool coincident) const;