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 (py::module &m, const char *name)
 
void export_DisContField (py::module &m)
 

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 ( py::module &  m)

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

59{
60 export_DisContField_Helper<DisContField, ExpList>(m, "DisContField");
61}

Referenced by PYBIND11_MODULE().

◆ export_DisContField_Helper()

template<class T , class S >
void export_DisContField_Helper ( py::module &  m,
const char *  name 
)

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

52{
53 py::class_<T, S, std::shared_ptr<T>>(m, name).def(
54 py::init<>(&CreateDisContField<T>), py::arg("session"),
55 py::arg("graph"), py::arg("var"), py::arg("setupDG") = true);
56}

References CellMLToNektar.pycml::name.