Start of libmesh implementation.

This commit is contained in:
Patrick Shriwise 2019-12-05 22:29:47 -06:00
parent 01f4e5674e
commit c95a0a914a
4 changed files with 91 additions and 0 deletions

View file

@ -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
//==============================================================================