Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#include <SpatialDomains/MeshGraph.h>
#include <boost/python.hpp>
using namespace Nektar;
using namespace Nektar::SpatialDomains;
using namespace boost::python;
/// MeshGraph::Read overloaded method selector
//static boost::shared_ptr<MeshGraph> (*MeshGraph_Read) (
// const LibUtilities::SessionReaderSharedPtr&) = &MeshGraph::Read;
/*
* @brief Lightweight wrapper around MeshGraph::Read to avoid wrapping
* DomainRange struct.
*/
MeshGraphSharedPtr MeshGraph_Read(
const LibUtilities::SessionReaderSharedPtr &session)
{
return MeshGraph::Read(session);
}
/// MeshGraph::Read overloaded method selector
static boost::shared_ptr<MeshGraph> (*MeshGraph_Read_2)(
const std::string&, bool) = &MeshGraph::Read;
/**
* @brief MeshGraph exports.
*/
void export_MeshGraph()
{
class_<MeshGraph,
boost::shared_ptr<MeshGraph> >(
"MeshGraph", init<>())
.def(init<int, int>())
.def(init<LibUtilities::SessionReaderSharedPtr >())
.def("Read", MeshGraph_Read)
.def("Read", MeshGraph_Read_2)
.staticmethod("Read")
.def("GetMeshDimension", &MeshGraph::GetMeshDimension)
;
}