@@ -427,10 +427,13 @@ int countpairs_wp_DOUBLE(const int64_t ND, DOUBLE * restrict X, DOUBLE * restric
427427 current_utc_time (& tcell_start );
428428 }
429429
430- const int status = wp_function_DOUBLE (this_cell_pair -> x1 , this_cell_pair -> y1 , this_cell_pair -> z1 ,
431- this_cell_pair -> weights1 , this_cell_pair -> N1 ,
432- this_cell_pair -> x2 , this_cell_pair -> y2 , this_cell_pair -> z2 ,
433- this_cell_pair -> weights2 , this_cell_pair -> N2 ,
430+ const int64_t icell = this_cell_pair -> cellindex1 ;
431+ const int64_t icell2 = this_cell_pair -> cellindex2 ;
432+ const cellarray_DOUBLE * first = & lattice [icell ];
433+ const cellarray_DOUBLE * second = & lattice [icell2 ];
434+
435+ const int status = wp_function_DOUBLE (first -> x , first -> y , first -> z , & (first -> weights ), first -> nelements ,
436+ second -> x , second -> y , second -> z , & (second -> weights ), second -> nelements ,
434437 this_cell_pair -> same_cell ,
435438 sqr_rpmax , sqr_rpmin , nrpbins , rupp_sqr , pimax ,
436439 this_cell_pair -> xwrap , this_cell_pair -> ywrap , this_cell_pair -> zwrap ,
@@ -448,7 +451,7 @@ int countpairs_wp_DOUBLE(const int64_t ND, DOUBLE * restrict X, DOUBLE * restric
448451 current_utc_time (& tcell_end );
449452 double time_in_ns = REALTIME_ELAPSED_NS (tcell_start , tcell_end );
450453 struct api_cell_timings * base_cell = & (options -> cell_timings [icellpair ]);
451- ASSIGN_CELL_TIMINGS (base_cell , this_cell_pair -> N1 , this_cell_pair -> N2 , time_in_ns ,
454+ ASSIGN_CELL_TIMINGS (base_cell , first -> nelements , second -> nelements , time_in_ns ,
452455 tid , this_cell_pair -> cellindex1 , this_cell_pair -> cellindex2 );
453456 }
454457 }//abort-status
0 commit comments