Skip to content

Commit 74e24c5

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

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
@@ -3464,7 +3464,10 @@ void Cell::remove_all_spring_attachments( void )
34643464
pC->state.spring_attachments.begin(),pC->state.spring_attachments.end(),this );
34653465
if ( SearchResult != pC->state.spring_attachments.end() )
34663466
{
3467-
std::cout << "Cell " << pC->ID << " still has cell " << this->ID << " as a spring attachment!" << std::endl;
3467+
#pragma omp critical
3468+
{
3469+
std::cout << "Cell " << pC->ID << " still has cell " << this->ID << " as a spring attachment!" << std::endl;
3470+
}
34683471
pC->state.spring_attachments.erase( SearchResult );
34693472
}
34703473

0 commit comments

Comments
 (0)