mantaflow icon indicating copy to clipboard operation
mantaflow copied to clipboard

Dimension casting causing wrong numpy array conversions on windows

Open riccardofelluga opened this issue 2 years ago • 0 comments

On windows, the cast to long from the type npy_intp returned by PyArray_NDIMS results in incorrect parsing of numpy array dimensions. I propose the use of intptr_t as a solution with the consequent change of type of the vector Dims to int.

riccardofelluga avatar Oct 26 '22 16:10 riccardofelluga