Commit d29fab95 authored by Emilia Juda's avatar Emilia Juda
Browse files

changes to make GetD() work

parent 2e964683
......@@ -11,7 +11,7 @@ void export_SharedArray();
template<typename T>
void export_NekMatrix();
BOOST_PYTHON_FUNCTION_OVERLOADS(Points_GetD_overloads, GetD, 1, 1);
// BOOST_PYTHON_FUNCTION_OVERLOADS(Points_GetD_overloads, GetD, 1, 1);
BOOST_PYTHON_MODULE(_LibUtilities)
{
......
......@@ -57,7 +57,7 @@ struct NekMatrixToPython
np::from_data(
mat->GetRawPtr(), np::dtype::get_builtin<T>(),
py::make_tuple(nRows, nCols),
py::make_tuple(nRows * sizeof(T), sizeof(T)),
py::make_tuple(sizeof(T), nCols * sizeof(T)),
capsule).ptr());
}
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment