Commit 80082f66 authored by Pedro Gonnet's avatar Pedro Gonnet
Browse files

bug.


Former-commit-id: 51ef6d1d5ac884f37d0adca09240ca4dee7ec5ec
parent aa0e4e04
......@@ -697,7 +697,7 @@ void space_map_mkghosts ( struct cell *c , void *data ) {
void space_map_parts ( struct space *s , void (*fun)( struct part *p , struct cell *c , void *data ) , void *data ) {
int i, cid = 0;
int cid = 0;
void rec_map ( struct cell *c ) {
......@@ -724,7 +724,7 @@ void space_map_parts ( struct space *s , void (*fun)( struct part *p , struct ce
#pragma omp critical
mycid = cid++;
if ( mycid < s->nr_cells )
rec_map( &s->cells[i] );
rec_map( &s->cells[mycid] );
else
break;
}
......@@ -744,7 +744,7 @@ void space_map_parts ( struct space *s , void (*fun)( struct part *p , struct ce
void space_map_cells_post ( struct space *s , int full , void (*fun)( struct cell *c , void *data ) , void *data ) {
int i, cid = 0;
int cid = 0;
void rec_map ( struct cell *c ) {
......@@ -770,7 +770,7 @@ void space_map_cells_post ( struct space *s , int full , void (*fun)( struct cel
#pragma omp critical
mycid = cid++;
if ( mycid < s->nr_cells )
rec_map( &s->cells[i] );
rec_map( &s->cells[mycid] );
else
break;
}
......@@ -781,7 +781,7 @@ void space_map_cells_post ( struct space *s , int full , void (*fun)( struct cel
void space_map_cells_pre ( struct space *s , int full , void (*fun)( struct cell *c , void *data ) , void *data ) {
int i, cid = 0;
int cid = 0;
void rec_map ( struct cell *c ) {
......@@ -807,7 +807,7 @@ void space_map_cells_pre ( struct space *s , int full , void (*fun)( struct cell
#pragma omp critical
mycid = cid++;
if ( mycid < s->nr_cells )
rec_map( &s->cells[i] );
rec_map( &s->cells[mycid] );
else
break;
}
......
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