Panzer Version of the Day
Loading...
Searching...
No Matches
Panzer_STK_MeshAccessor.hpp
Go to the documentation of this file.
1#ifndef PANZER_STK_MESH_ACCESSOR_HPP
2#define PANZER_STK_MESH_ACCESSOR_HPP
3
4#include "Teuchos_Assert.hpp"
6
7namespace panzer_stk {
8
17 Teuchos::RCP<panzer_stk::STK_Interface> mesh_;
18 public:
20 Teuchos::RCP<panzer_stk::STK_Interface> getMesh() const
21 {
22 TEUCHOS_ASSERT(Teuchos::nonnull(mesh_));
23 return mesh_;
24 }
25
27 void setMesh(const Teuchos::RCP<STK_Interface>& mesh){mesh_ = mesh;}
28 };
29
30}
31
32#endif
Teuchos::RCP< panzer_stk::STK_Interface > getMesh() const
Returns the mesh set by setMesh(). Asserts that a mesh has been set.
void setMesh(const Teuchos::RCP< STK_Interface > &mesh)
Sets the mesh to be returned by getMesh().
Teuchos::RCP< panzer_stk::STK_Interface > mesh_