Skip to content

Commit

Permalink
Update BioFVM_basic_agent.cpp
Browse files Browse the repository at this point in the history
Changed defaults in BioFVM Basic Agents so that cells ingest not just cell volume, but also internalized substrates by default.

This is in response to Issue #307
  • Loading branch information
MathCancer committed Oct 14, 2024
1 parent ac68650 commit 4843874
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BioFVM/BioFVM_basic_agent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ Basic_Agent::Basic_Agent()

internalized_substrates = new std::vector<double>(0); //
fraction_released_at_death = new std::vector<double>(0);
fraction_transferred_when_ingested = new std::vector<double>(0);
fraction_transferred_when_ingested = new std::vector<double>(1.0);
register_microenvironment( get_default_microenvironment() );

// these are done in register_microenvironment
Expand Down Expand Up @@ -190,7 +190,7 @@ void Basic_Agent::register_microenvironment( Microenvironment* microenvironment_
total_extracellular_substrate_change.resize( microenvironment->density_vector(0).size() , 1.0 );

fraction_released_at_death->resize( microenvironment->density_vector(0).size() , 0.0 );
fraction_transferred_when_ingested->resize( microenvironment->density_vector(0).size() , 0.0 );
fraction_transferred_when_ingested->resize( microenvironment->density_vector(0).size() , 1.0 );

return;
}
Expand Down

0 comments on commit 4843874

Please sign in to comment.