61 PyObject *baseTypeObj = PyExc_Exception)
63 std::string qualifiedName0 = std::string(
"NekPy.LibUtilities.") +
name;
65 PyObject *typeObj = PyErr_NewException(
66 const_cast<char *
>(qualifiedName0.c_str()), baseTypeObj,
nullptr);
70 py::throw_error_already_set();
73 py::scope().attr(
name) = py::handle<>(py::borrowed(typeObj));
99 export_SharedArray<double>();
100 export_SharedArray<const double>();
101 export_SharedArray<Array<OneD, double>>();
102 export_SharedArray<const Array<OneD, double>>();
void export_Comm()
Export for Comm communicator.
void export_Basis()
Basis exports.
void TranslateNekError(NekError const &e)
void export_Interpreter()
void export_TimeIntegrationScheme()
Nektar::ErrorUtil::NekError NekError
BOOST_PYTHON_MODULE(_LibUtilities)
PyObject * CreateExceptionClass(const char *name, PyObject *baseTypeObj=PyExc_Exception)
void export_ShapeType()
Export for ShapeType enumeration.
std::stringstream errorStream
void export_Points()
Points exports.
void export_TimeIntegrationSchemeOperators()
void export_SessionReader()
SessionReader exports.
template void export_NekMatrix< double >()
static void SetErrorStream(std::ostream &o)