51 std::string fieldName)
53 return func->Describe(fieldName);
57 std::shared_ptr<SessionFunction>
func, std::vector<std::string> fieldNames,
60 func->Evaluate(fieldNames, explists, time);
65 std::shared_ptr<SessionFunction>
func, py::list fieldNames,
68 std::vector<std::string> fields(py::len(fieldNames));
70 for (std::size_t i = 0; i < py::len(fieldNames); ++i)
72 fields[i] = py::extract<std::string>(fieldNames[i]);
75 if (explists.size() == 0)
86 std::shared_ptr<SessionFunction>
func, py::list fieldNames,
94 py::class_<SessionFunction, std::shared_ptr<SessionFunction>,
95 boost::noncopyable>(
"SessionFunction", py::no_init)
Nektar::ErrorUtil::NekError NekError
std::string SessionFunction_Describe(std::shared_ptr< SessionFunction > func, std::string fieldName)
Array< OneD, MultiRegions::ExpListSharedPtr > SessionFunction_Evaluate1(std::shared_ptr< SessionFunction > func, py::list fieldNames, Array< OneD, MultiRegions::ExpListSharedPtr > explists)
std::shared_ptr< SessionFunction > SessionFunction_Init(const LibUtilities::SessionReaderSharedPtr session, const MultiRegions::ExpListSharedPtr field, std::string functionName)
void export_SessionFunction()
Array< OneD, MultiRegions::ExpListSharedPtr > SessionFunction_Evaluate(std::shared_ptr< SessionFunction > func, py::list fieldNames, Array< OneD, MultiRegions::ExpListSharedPtr > explists, NekDouble time)
Array< OneD, MultiRegions::ExpListSharedPtr > SessionFunction_Evaluate_ExpList(std::shared_ptr< SessionFunction > func, std::vector< std::string > fieldNames, Array< OneD, MultiRegions::ExpListSharedPtr > explists, NekDouble time)
General purpose memory allocation routines with the ability to allocate from thread specific memory p...
std::shared_ptr< SessionReader > SessionReaderSharedPtr
std::shared_ptr< ExpList > ExpListSharedPtr
Shared pointer to an ExpList object.