Skip to content

Commit 660a49e

Browse files
committed
add missing secretion to update_all_cells
1 parent fe9161a commit 660a49e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

core/PhysiCell_cell_container.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,17 @@ void Cell_Container::update_all_cells(double t)
121121

122122
void Cell_Container::update_all_cells(double t, double phenotype_dt_ , double mechanics_dt_ , double diffusion_dt_ )
123123
{
124+
// secretions and uptakes. Syncing with BioFVM is automated.
125+
126+
#pragma omp parallel for
127+
for( int i=0; i < (*all_cells).size(); i++ )
128+
{
129+
if( (*all_cells)[i]->is_out_of_domain == false )
130+
{
131+
(*all_cells)[i]->phenotype.secretion.advance( (*all_cells)[i], (*all_cells)[i]->phenotype , diffusion_dt_ );
132+
}
133+
}
134+
124135
//if it is the time for running cell cycle, do it!
125136
double time_since_last_cycle= t- last_cell_cycle_time;
126137

0 commit comments

Comments
 (0)