Skip to content

Commit 73acd59

Browse files
committed
Erase now also within omp critical block
1 parent 0780ef2 commit 73acd59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/PhysiCell_cell.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)