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

Go to the source code of this file.

Functions

template<class T >
std::shared_ptr< T > CreateDisContField (const LibUtilities::SessionReaderSharedPtr &session, const SpatialDomains::MeshGraphSharedPtr &graph, const std::string &var, const bool setupDG)
 
template<class T , class S >
void export_DisContField_Helper (const char *name)
 
void export_DisContField ()
 

Function Documentation

◆ CreateDisContField()

template<class T >
std::shared_ptr< T > CreateDisContField ( const LibUtilities::SessionReaderSharedPtr session,
const SpatialDomains::MeshGraphSharedPtr graph,
const std::string &  var,
const bool  setupDG 
)

Definition at line 42 of file Python/DisContField.cpp.

46{
47 return std::make_shared<T>(session, graph, var, setupDG);
48}

◆ export_DisContField()

void export_DisContField ( )

Definition at line 60 of file Python/DisContField.cpp.

61{
62 export_DisContField_Helper<DisContField, ExpList>("DisContField");
63}

Referenced by BOOST_PYTHON_MODULE().

◆ export_DisContField_Helper()

template<class T , class S >
void export_DisContField_Helper ( const char *  name)

Definition at line 50 of file Python/DisContField.cpp.

51{
52 py::class_<T, py::bases<S>, std::shared_ptr<T>>(name, py::no_init)
53 .def("__init__",
54 py::make_constructor(&CreateDisContField<T>,
55 py::default_call_policies(),
56 (py::arg("session"), py::arg("graph"),
57 py::arg("var"), py::arg("setupDG") = true)));
58}

References CellMLToNektar.pycml::name.