Skip to content

Commit 58a5a02

Browse files
salva24vgvassilev
andauthored
Update src/cart_cell.cc
use *Simulation::GetActive()->GetResourceManager() just once Co-authored-by: Vassil Vassilev <[email protected]>
1 parent d82301f commit 58a5a02

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/cart_cell.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,10 @@ CartCell::CartCell(const Real3& position) {
3939

4040

4141
// Pointer to oxygen diffusion grid
42-
oxygen_dgrid_ = Simulation::GetActive()->GetResourceManager()->GetDiffusionGrid("oxygen");
42+
ResourseManager &rm = *Simulation::GetActive()->GetResourceManager();
43+
oxygen_dgrid_ = rm.GetDiffusionGrid("oxygen");
4344
// Pointer to immunostimulatory_factor diffusion grid
44-
immunostimulatory_factor_dgrid_ = Simulation::GetActive()->GetResourceManager()->GetDiffusionGrid("immunostimulatory_factor");
45+
immunostimulatory_factor_dgrid_ = rm.GetDiffusionGrid("immunostimulatory_factor");
4546
// Initially not attached to a tumor cell
4647
attached_to_tumor_cell_ = false;
4748
// Initialize attached cell pointer to null

0 commit comments

Comments
 (0)