removed threading support, because it does not work

This commit is contained in:
Daniel Knüttel 2019-07-15 16:05:27 +02:00
parent 0a734b8266
commit d59dd8bba4

View File

@ -87,7 +87,7 @@ interaction_ufunc_float2D
, npy_intp * steps , npy_intp * steps
, void * data) , void * data)
{ {
NPY_BEGIN_THREADS_DEF; //NPY_BEGIN_THREADS_DEF;
npy_intp i; npy_intp i;
npy_intp j; npy_intp j;
npy_intp n = dimensions[0]; npy_intp n = dimensions[0];
@ -125,7 +125,7 @@ interaction_ufunc_float2D
float this_x_j; float this_x_j;
float this_y_j; float this_y_j;
NPY_BEGIN_THREADS; //NPY_BEGIN_THREADS;
for(i = 0; i < n; i++) for(i = 0; i < n; i++)
{ {
@ -183,7 +183,7 @@ interaction_ufunc_float2D
*(float *)(p_y_new + j*p_y_new_steps) -= dt*delta_p_y; *(float *)(p_y_new + j*p_y_new_steps) -= dt*delta_p_y;
} }
} }
NPY_END_THREADS; //NPY_END_THREADS;
} }
static char interaction_types[] = static char interaction_types[] =
{ NPY_FLOAT, NPY_FLOAT, NPY_FLOAT, NPY_FLOAT, NPY_FLOAT, NPY_FLOAT}; { NPY_FLOAT, NPY_FLOAT, NPY_FLOAT, NPY_FLOAT, NPY_FLOAT, NPY_FLOAT};