mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
moved accessor to one liner in header
This commit is contained in:
parent
fd8a820708
commit
045bc34ec4
2 changed files with 2 additions and 7 deletions
|
|
@ -704,7 +704,7 @@ public:
|
|||
|
||||
double volume(int bin) const override;
|
||||
|
||||
libMesh::MeshBase * mesh_ptr() const;
|
||||
libMesh::MeshBase* mesh_ptr() const { return m_; };
|
||||
|
||||
private:
|
||||
void initialize() override;
|
||||
|
|
@ -720,7 +720,7 @@ private:
|
|||
|
||||
// Data members
|
||||
unique_ptr<libMesh::MeshBase> unique_m_; //!< pointer to the libMesh MeshBase instance, only used if mesh is created inside OpenMC
|
||||
libMesh::MeshBase * m_; //!< pointer to libMesh MeshBase instance, always set during intialization
|
||||
libMesh::MeshBase* m_; //!< pointer to libMesh MeshBase instance, always set during intialization
|
||||
vector<unique_ptr<libMesh::PointLocatorBase>>
|
||||
pl_; //!< per-thread point locators
|
||||
unique_ptr<libMesh::EquationSystems>
|
||||
|
|
|
|||
|
|
@ -2566,11 +2566,6 @@ double LibMesh::volume(int bin) const
|
|||
return m_->elem_ref(bin).volume();
|
||||
}
|
||||
|
||||
libMesh::MeshBase * mesh_ptr() const
|
||||
{
|
||||
return m_;
|
||||
}
|
||||
|
||||
#endif // LIBMESH
|
||||
|
||||
//==============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue