From 9abcf80ca55447421222df773417889dddd7d329 Mon Sep 17 00:00:00 2001 From: Daniel Bergman Date: Tue, 26 Nov 2024 20:34:05 -0500 Subject: [PATCH] edit whitespaces --- core/PhysiCell_cell_container.cpp | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/core/PhysiCell_cell_container.cpp b/core/PhysiCell_cell_container.cpp index 94a1e26bd..ffdfabb88 100644 --- a/core/PhysiCell_cell_container.cpp +++ b/core/PhysiCell_cell_container.cpp @@ -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(); @@ -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 @@ -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++ ) {