Skip to content

Commit

Permalink
adding an anonymous namespace to help the optimizer
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Voigt authored and Alexander Voigt committed Dec 6, 2016
1 parent 3625d21 commit afc675c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/rk.cpp
Expand Up @@ -18,9 +18,11 @@ using namespace Eigen;

namespace runge_kutta {

namespace {
/// Returns |a| with sign of b in front
double sign(double a, double b)
{ return b >= 0 ? fabs(a) : -fabs(a); }
} // anonymous namespace

void integrateOdes(ArrayXd& ystart, double from, double to, double eps,
double h1, double hmin, Derivs derivs,
Expand Down Expand Up @@ -145,4 +147,4 @@ void rungeKuttaStep(const ArrayXd& y, const ArrayXd& dydx, double x,

} // namespace runge_kutta

}
} // namespace flexiblesusy

0 comments on commit afc675c

Please sign in to comment.