File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3419,8 +3419,8 @@ void Cell::remove_self_from_all_neighbors( void )
34193419 #pragma omp critical
34203420 {
34213421 std::cout << " Cell " << pC->ID << " still has cell " << this ->ID << " as a neighbor!" << std::endl;
3422+ pC->state .neighbors .erase ( SearchResult );
34223423 }
3423- pC->state .neighbors .erase ( SearchResult );
34243424 }
34253425
34263426 }
@@ -3470,8 +3470,8 @@ void Cell::remove_all_spring_attachments( void )
34703470 #pragma omp critical
34713471 {
34723472 std::cout << " Cell " << pC->ID << " still has cell " << this ->ID << " as a spring attachment!" << std::endl;
3473+ pC->state .spring_attachments .erase ( SearchResult );
34733474 }
3474- pC->state .spring_attachments .erase ( SearchResult );
34753475 }
34763476
34773477 }
You can’t perform that action at this time.
0 commit comments