Skip to content

Commit

Permalink
edit whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
drbergman committed Nov 27, 2024
1 parent 7ac3e39 commit 9abcf80
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions core/PhysiCell_cell_container.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,16 +173,22 @@ void Cell_Container::update_all_cells(double t, double phenotype_dt_ , double me
for( int i=0; i < (*all_cells).size(); i++ )
{
if( (*all_cells)[i]->is_out_of_domain == false )
{ (*all_cells)[i]->advance_bundled_phenotype_functions( time_since_last_cycle ); }
{
(*all_cells)[i]->advance_bundled_phenotype_functions(time_since_last_cycle);
}
}
// process divides / removes
for( int i=0; i < cells_ready_to_divide.size(); i++ )
{ cells_ready_to_divide[i]->divide(); }
{
cells_ready_to_divide[i]->divide();
}
// remove cells here (and not only below after interactions) in case phenotype and mechanics time steps don't line up
for( int i=0; i < cells_ready_to_die.size(); i++ )
{ cells_ready_to_die[i]->die(); }
num_deaths_in_current_step+= cells_ready_to_die.size();
{
cells_ready_to_die[i]->die();
}
num_divisions_in_current_step+= cells_ready_to_divide.size();
num_deaths_in_current_step+= cells_ready_to_die.size();

cells_ready_to_die.clear();
cells_ready_to_divide.clear();
Expand All @@ -203,7 +209,9 @@ void Cell_Container::update_all_cells(double t, double phenotype_dt_ , double me
standard_cell_cell_interactions(pC,pC->phenotype,time_since_last_mechanics);
}
for( int i=0; i < cells_ready_to_die.size(); i++ )
{ cells_ready_to_die[i]->die(); }
{
cells_ready_to_die[i]->die();
}
cells_ready_to_die.clear();

// new February 2018
Expand Down Expand Up @@ -279,8 +287,6 @@ void Cell_Container::update_all_cells(double t, double phenotype_dt_ , double me
{ pC->update_position(time_since_last_mechanics); }
}

// When somebody reviews this code, let's add proper braces for clarity!!!

// Update cell indices in the container
for( int i=0; i < (*all_cells).size(); i++ )
{
Expand Down

0 comments on commit 9abcf80

Please sign in to comment.