Nektar++
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
Python/MeshGraphIO.cpp File Reference
#include <LibUtilities/Python/NekPyConfig.hpp>
#include <SpatialDomains/Python/SpatialDomains.h>
#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 (py::module &m)
 

Function Documentation

◆ export_MeshGraphIO()

void export_MeshGraphIO ( py::module &  m)

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

59{
60 py::class_<MeshGraphIO, std::shared_ptr<MeshGraphIO>>(m, "MeshGraphIO")
61
62 .def("Write", &MeshGraphIO::WriteGeometry, py::arg("outfile"),
63 py::arg("defaultExp") = false,
64 py::arg("metadata") = LibUtilities::NullFieldMetaDataMap)
65
66 .def("SetMeshGraph", &MeshGraphIO::SetMeshGraph)
67
68 .def_static("Read", MeshGraphIO_Read)
69 .def_static("Create", MeshGraphIO_Create);
70}
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 PYBIND11_MODULE().

◆ MeshGraphIO_Create()

MeshGraphIOSharedPtr MeshGraphIO_Create ( std::string  ioType)

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

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

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 47 of file Python/MeshGraphIO.cpp.

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

Referenced by export_MeshGraphIO().