mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Start of libmesh implementation.
This commit is contained in:
parent
01f4e5674e
commit
c95a0a914a
4 changed files with 91 additions and 0 deletions
|
|
@ -22,6 +22,11 @@
|
|||
#include "moab/GeomUtil.hpp"
|
||||
#endif
|
||||
|
||||
#ifdef LIBMESH
|
||||
#include "libmesh/libmesh.h"
|
||||
#include "libmesh/mesh.h"
|
||||
#endif
|
||||
|
||||
namespace openmc {
|
||||
|
||||
//==============================================================================
|
||||
|
|
@ -251,6 +256,12 @@ public:
|
|||
int set_grid();
|
||||
};
|
||||
|
||||
class UnstructuredMeshBase : public Mesh {
|
||||
public:
|
||||
UnstructuredMeshBase(pugi::xml_node node);
|
||||
std::string filename_;
|
||||
};
|
||||
|
||||
#ifdef DAGMC
|
||||
|
||||
class UnstructuredMesh : public Mesh {
|
||||
|
|
@ -422,6 +433,19 @@ private:
|
|||
|
||||
#endif
|
||||
|
||||
#ifdef LIBMESH
|
||||
class LibMesh : public UnstructuredMeshBase {
|
||||
|
||||
public:
|
||||
// constructor
|
||||
LibMesh(pugi::xml_node node);
|
||||
|
||||
private:
|
||||
std::unique_ptr<libMesh::Mesh> m_;
|
||||
std::unique_ptr<libMesh::PointLocatorBase> point_locator_;
|
||||
};
|
||||
#endif
|
||||
|
||||
//==============================================================================
|
||||
// Non-member functions
|
||||
//==============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue