Skip to content

Commit

Permalink
Use in-class initialization for base beta function class
Browse files Browse the repository at this point in the history
  • Loading branch information
Dylan Harries committed Jan 11, 2017
1 parent 3bfd002 commit 699cbc9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 19 deletions.
11 changes: 0 additions & 11 deletions src/betafunction.cpp
Expand Up @@ -28,17 +28,6 @@

namespace flexiblesusy {

Beta_function::Beta_function()
: num_pars(0)
, loops(0)
, thresholds(0)
, scale(0.0)
, tolerance(1.e-4)
, min_tolerance(1.0e-11)
, zero_threshold(1.e-11)
{
}

void Beta_function::reset()
{
num_pars = 0;
Expand Down
16 changes: 8 additions & 8 deletions src/betafunction.hpp
Expand Up @@ -40,7 +40,7 @@ namespace flexiblesusy {
*/
class Beta_function {
public:
Beta_function();
Beta_function() = default;
Beta_function(const Beta_function&) = default;
Beta_function(Beta_function&&) = default;
virtual ~Beta_function() {}
Expand Down Expand Up @@ -73,13 +73,13 @@ class Beta_function {
void call_rk(double, double, Eigen::ArrayXd&, Derivs, double eps = -1.0);

private:
unsigned num_pars; ///< number of parameters
unsigned loops; ///< to what loop order does the RG evolution run
unsigned thresholds; ///< threshold correction loop order
double scale; ///< current renormalization scale
double tolerance; ///< running tolerance
double min_tolerance; ///< minimum tolerance allowed
double zero_threshold;///< threshold for treating values as zero
unsigned num_pars{0}; ///< number of parameters
unsigned loops{0}; ///< to what loop order does the RG evolution run
unsigned thresholds{0}; ///< threshold correction loop order
double scale{0.}; ///< current renormalization scale
double tolerance{1.e-4}; ///< running tolerance
double min_tolerance{1.e-11}; ///< minimum tolerance allowed
double zero_threshold{1.e-11};///< threshold for treating values as zero

Eigen::ArrayXd derivatives(double, const Eigen::ArrayXd&);
double get_tolerance(double eps);
Expand Down

0 comments on commit 699cbc9

Please sign in to comment.