Commit dc18c103 authored by Pedro Gonnet's avatar Pedro Gonnet
Browse files

fixing issue #8, pointed out by bert, in the main branch.


Former-commit-id: 0776d4e0c4ff20bf6e3734dc0ffdfdcd7acf926e
parent 10ac0972
......@@ -400,7 +400,7 @@ void space_rebuild ( struct space *s , double cell_max ) {
/* Sort the parts according to their cells. */
// tic = getticks();
gparts_sort( gparts ,ind , nr_parts , 0 , s->nr_cells-1 );
gparts_sort( gparts ,ind , nr_gparts , 0 , s->nr_cells-1 );
// message( "gparts_sort took %.3f ms." , (double)(getticks() - tic) / CPU_TPS * 1000 );
/* Re-link the parts. */
......
Supports Markdown
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