Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
gsaxena
PhysiCell_X
Commits
be6b3199
Commit
be6b3199
authored
May 09, 2022
by
mponce
Browse files
Adding noise time step to TNF example
parent
01e383e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
sample_projects_intracellular/boolean/spheroid_tnf_model_mpi/custom_modules/tnf_boolean_model_interface.cpp
View file @
be6b3199
...
...
@@ -135,7 +135,15 @@ void tnf_bm_interface_main(Cell* pCell, Phenotype& phenotype, double dt)
update_boolean_model_inputs
(
pCell
,
phenotype
,
dt
);
// Run maboss to update the boolean state of the cell
pCell
->
phenotype
.
intracellular
->
update
();
pCell
->
phenotype
.
intracellular
->
update
();
MaBoSSIntracellular
*
physiboss
=
static_cast
<
MaBoSSIntracellular
*>
(
pCell
->
phenotype
.
intracellular
);
//next_physiboss_run
double
noise
=
NormalRandom
(
0
,
2.5
);
noise
=
max
(
-
5
,
noise
);
noise
=
min
(
5
,
noise
);
physiboss
->
next_physiboss_run
+=
noise
;
// update the cell fate based on the boolean outputs
update_cell_from_boolean_model
(
pCell
,
phenotype
,
dt
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment