Skip to content

Commit

Permalink
Update MainSequence.cpp - formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffriley authored Nov 28, 2024
1 parent 6bfcd7c commit 8fcd7ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MainSequence.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -494,8 +494,8 @@ double MainSequence::CalculateRadiusOnPhase(const double p_Mass, const double p_

// pow() is slow - use multiplication where it makes sense
double tau_3 = tau * tau * tau;
double tau_10 = tau<FLOAT_TOLERANCE_ABSOLUTE ? 0.0: tau_3 * tau_3 * tau_3 * tau; // direct comparison, to avoid underflow
double tau_40 = tau_10<FLOAT_TOLERANCE_ABSOLUTE ? 0.0: tau_10 * tau_10 * tau_10 * tau_10; // direct comparison, to avoid underflow
double tau_10 = tau < FLOAT_TOLERANCE_ABSOLUTE ? 0.0: tau_3 * tau_3 * tau_3 * tau; // direct comparison, to avoid underflow
double tau_40 = tau_10 < FLOAT_TOLERANCE_ABSOLUTE ? 0.0: tau_10 * tau_10 * tau_10 * tau_10; // direct comparison, to avoid underflow

double tau1_3 = tau1 * tau1 * tau1;
double tau2_3 = tau2 * tau2 * tau2;
Expand Down

0 comments on commit 8fcd7ea

Please sign in to comment.