52 std::string fieldName)
54 return func->Describe(fieldName);
58 std::shared_ptr<SessionFunction>
func, std::vector<std::string> fieldNames,
61 func->Evaluate(fieldNames, explists, time);
66 std::shared_ptr<SessionFunction>
func, py::list fieldNames,
69 std::vector<std::string> fields(py::len(fieldNames));
71 for (std::size_t i = 0; i < py::len(fieldNames); ++i)
73 fields[i] = py::cast<std::string>(fieldNames[i]);
76 if (explists.size() == 0)
87 std::shared_ptr<SessionFunction>
func, py::list fieldNames,
95 py::class_<SessionFunction, std::shared_ptr<SessionFunction>>(
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(py::module &m)
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.