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

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.

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

◆ export_DisContField()

void export_DisContField ( )

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

63 {
64  export_DisContField_Helper<DisContField, ExpList>("DisContField");
65 }

Referenced by BOOST_PYTHON_MODULE().

◆ export_DisContField_Helper()

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

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

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

References CellMLToNektar.pycml::name.