Nektar++
Functions
Python/MeshGraphIO.cpp File Reference
#include <LibUtilities/Python/NekPyConfig.hpp>
#include <SpatialDomains/MeshGraphIO.h>

Go to the source code of this file.

Functions

MeshGraphSharedPtr MeshGraphIO_Read (const LibUtilities::SessionReaderSharedPtr &session)
 
MeshGraphIOSharedPtr MeshGraphIO_Create (std::string ioType)
 
void export_MeshGraphIO ()
 

Function Documentation

◆ export_MeshGraphIO()

void export_MeshGraphIO ( )

Definition at line 57 of file Python/MeshGraphIO.cpp.

58{
59 py::class_<MeshGraphIO, std::shared_ptr<MeshGraphIO>, boost::noncopyable>(
60 "MeshGraphIO", py::no_init)
61
62 .def("Write", &MeshGraphIO::WriteGeometry, py::default_call_policies(),
63 (py::arg("outfile"), py::arg("defaultExp") = false,
64 py::arg("metadata") = LibUtilities::NullFieldMetaDataMap))
65
66 .def("SetMeshGraph", &MeshGraphIO::SetMeshGraph)
67
68 .def("Read", MeshGraphIO_Read)
69 .staticmethod("Read")
70
71 .def("Create", MeshGraphIO_Create)
72 .staticmethod("Create");
73}
MeshGraphSharedPtr MeshGraphIO_Read(const LibUtilities::SessionReaderSharedPtr &session)
MeshGraphIOSharedPtr MeshGraphIO_Create(std::string ioType)
static FieldMetaDataMap NullFieldMetaDataMap
Definition: FieldIO.h:51

References MeshGraphIO_Create(), MeshGraphIO_Read(), and Nektar::LibUtilities::NullFieldMetaDataMap.

Referenced by BOOST_PYTHON_MODULE().

◆ MeshGraphIO_Create()

MeshGraphIOSharedPtr MeshGraphIO_Create ( std::string  ioType)

Definition at line 52 of file Python/MeshGraphIO.cpp.

53{
55}
tBaseSharedPtr CreateInstance(tKey idKey, tParam... args)
Create an instance of the class referred to by idKey.
MeshGraphIOFactory & GetMeshGraphIOFactory()
Definition: MeshGraphIO.cpp:47

References Nektar::LibUtilities::NekFactory< tKey, tBase, tParam >::CreateInstance(), and Nektar::SpatialDomains::GetMeshGraphIOFactory().

Referenced by export_MeshGraphIO().

◆ MeshGraphIO_Read()

MeshGraphSharedPtr MeshGraphIO_Read ( const LibUtilities::SessionReaderSharedPtr session)

Definition at line 46 of file Python/MeshGraphIO.cpp.

48{
49 return MeshGraphIO::Read(session);
50}

Referenced by export_MeshGraphIO().