Skip to content

Commit ca591c7

Browse files
Fix neighbors cleanup message
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 74e24c5 commit ca591c7

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

core/PhysiCell_cell.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3416,7 +3416,10 @@ void Cell::remove_self_from_all_neighbors( void )
34163416
pC->state.neighbors.begin(),pC->state.neighbors.end(),this );
34173417
if ( SearchResult != pC->state.neighbors.end() )
34183418
{
3419-
std::cout << "Cell " << pC->ID << " still has cell " << this->ID << " as a neighbor!" << std::endl;
3419+
#pragma omp critical
3420+
{
3421+
std::cout << "Cell " << pC->ID << " still has cell " << this->ID << " as a neighbor!" << std::endl;
3422+
}
34203423
pC->state.neighbors.erase( SearchResult );
34213424
}
34223425

0 commit comments

Comments
 (0)