Skip to content

Commit

Permalink
removing rounding on init conditions conversions
Browse files Browse the repository at this point in the history
  • Loading branch information
Ion Moraru authored and Ion Moraru committed Nov 26, 2020
1 parent 9bec6e5 commit ae89bc6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1531,7 +1531,7 @@ public Expression convertConcentrationToParticles(Expression iniConcentration) t
VCUnitDefinition volSubstanceToStochastic = modelUnitSystem.getStochasticSubstanceUnit().divideBy(modelUnitSystem.getVolumeSubstanceUnit());
double volSubstanceToStochasticScale = volSubstanceToStochastic.getDimensionlessScale().doubleValue();
try {
iniParticlesExpr = new Expression((Math.round(iniConcentration.evaluateConstant() * structSize * volSubstanceToStochasticScale)));
iniParticlesExpr = new Expression(iniConcentration.evaluateConstant() * structSize * volSubstanceToStochasticScale);
} catch (ExpressionException e) {
Expression numeratorExpr = Expression.mult(iniConcentration, new Expression(structSize));
Expression exp = new Expression(volSubstanceToStochasticScale);
Expand Down

0 comments on commit ae89bc6

Please sign in to comment.