@@ -3406,7 +3406,6 @@ void Cell::remove_self_from_all_neighbors( void )
34063406 }
34073407
34083408 // This is a bit of a ugly hack, we need to find the origin of that bug
3409- #pragma omp parallel for
34103409 for ( int i = 0 ; i < all_cells->size (); i++ )
34113410 {
34123411 Cell* pC = (*all_cells)[i];
@@ -3416,13 +3415,9 @@ void Cell::remove_self_from_all_neighbors( void )
34163415 pC->state .neighbors .begin (),pC->state .neighbors .end (),this );
34173416 if ( SearchResult != pC->state .neighbors .end () )
34183417 {
3419- #pragma omp critical
3420- {
3421- std::cout << " Cell " << pC->ID << " still has cell " << this ->ID << " as a neighbor!" << std::endl;
3422- pC->state .neighbors .erase ( SearchResult );
3423- }
3418+ std::cout << " Cell " << pC->ID << " still has cell " << this ->ID << " as a neighbor!" << std::endl;
3419+ pC->state .neighbors .erase ( SearchResult );
34243420 }
3425-
34263421 }
34273422 }
34283423
@@ -3457,7 +3452,6 @@ void Cell::remove_all_spring_attachments( void )
34573452 }
34583453
34593454 // This is a bit of a ugly hack, we need to find the origin of that bug
3460- #pragma omp parallel for
34613455 for ( int i = 0 ; i < all_cells->size (); i++ )
34623456 {
34633457 Cell* pC = (*all_cells)[i];
@@ -3467,11 +3461,8 @@ void Cell::remove_all_spring_attachments( void )
34673461 pC->state .spring_attachments .begin (),pC->state .spring_attachments .end (),this );
34683462 if ( SearchResult != pC->state .spring_attachments .end () )
34693463 {
3470- #pragma omp critical
3471- {
3472- std::cout << " Cell " << pC->ID << " still has cell " << this ->ID << " as a spring attachment!" << std::endl;
3473- pC->state .spring_attachments .erase ( SearchResult );
3474- }
3464+ std::cout << " Cell " << pC->ID << " still has cell " << this ->ID << " as a spring attachment!" << std::endl;
3465+ pC->state .spring_attachments .erase ( SearchResult );
34753466 }
34763467
34773468 }
0 commit comments