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

Go to the source code of this file.

Functions

std::shared_ptr< ContFieldCreateContField (const LibUtilities::SessionReaderSharedPtr &session, const SpatialDomains::MeshGraphSharedPtr &graph, const std::string &var, const bool checkSingular)
 
void export_ContField ()
 

Function Documentation

◆ CreateContField()

std::shared_ptr<ContField> CreateContField ( const LibUtilities::SessionReaderSharedPtr session,
const SpatialDomains::MeshGraphSharedPtr graph,
const std::string &  var,
const bool  checkSingular 
)

Definition at line 41 of file Python/ContField.cpp.

46 {
47  return std::make_shared<ContField>(session, graph, var,
48  true, checkSingular);
49 }

Referenced by export_ContField().

◆ export_ContField()

void export_ContField ( )

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

52 {
53  py::class_<ContField, py::bases<ExpList>, std::shared_ptr<ContField>>(
54  "ContField", py::no_init)
55  .def("__init__", py::make_constructor(
57  py::default_call_policies(),
58  (py::arg("session"), py::arg("graph"), py::arg("var"),
59  py::arg("checkSingular") = true)));
60 }
std::shared_ptr< ContField > CreateContField(const LibUtilities::SessionReaderSharedPtr &session, const SpatialDomains::MeshGraphSharedPtr &graph, const std::string &var, const bool checkSingular)

References CreateContField().

Referenced by BOOST_PYTHON_MODULE().