Skip to content

Commit b5322ee

Browse files
committed
fix asym div probs > 1 exit call
- bump
2 parents 60716e7 + c9929e9 commit b5322ee

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

VERSION.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.14.2-drbergman-1.3.1
1+
1.14.2-drbergman-1.3.2

core/PhysiCell_standard_models.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1384,7 +1384,8 @@ void standard_asymmetric_division_function( Cell* pCell_parent, Cell* pCell_daug
13841384
double sym_div_prob = pCell_parent->phenotype.cycle.asymmetric_division.asymmetric_division_probabilities[pCell_parent->type] + 1.0 - total;
13851385
if (sym_div_prob < 0.0)
13861386
{
1387-
throw std::runtime_error("Error: Asymmetric division probabilities for " + pCD_parent->name + " sum to greater than 1.0 and cannot be normalized.");
1387+
std::cerr << "Error: Asymmetric division probabilities for " + pCD_parent->name + " sum to greater than 1.0 and cannot be normalized." << std::endl;
1388+
exit(-1);
13881389
}
13891390
pCell_parent->phenotype.cycle.asymmetric_division.asymmetric_division_probabilities[pCell_parent->type] = sym_div_prob;
13901391
pCell_daughter->phenotype.cycle.asymmetric_division.asymmetric_division_probabilities[pCell_daughter->type] = sym_div_prob;

0 commit comments

Comments
 (0)