Skip to content

Commit

Permalink
make BC solver a local object to enable copy construction of SG
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Voigt authored and Alexander Voigt committed Feb 6, 2017
1 parent 86a4eda commit 853a414
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Expand Up @@ -51,7 +51,6 @@ class @ModelName@_spectrum_generator
public:
@ModelName@_spectrum_generator()
: @ModelName@_spectrum_generator_interface<T>()
, solver()
, high_scale_constraint()
, susy_scale_constraint()
, low_scale_constraint()
Expand All @@ -72,7 +71,6 @@ public:
void write_running_couplings(const std::string& filename = "@ModelName@_rgflow.dat") const;

private:
RGFlow<T> solver;
@ModelName@_high_scale_constraint<T> high_scale_constraint;
@ModelName@_susy_scale_constraint<T> susy_scale_constraint;
standard_model::Standard_model_low_scale_constraint<T> low_scale_constraint;
Expand Down Expand Up @@ -176,7 +174,7 @@ void @ModelName@_spectrum_generator<T>::run(const softsusy::QedQcd& qedqcd,
Two_scale_increasing_precision precision(
10.0, this->settings.get(Spectrum_generator_settings::precision));

solver.reset();
RGFlow<T> solver;
solver.set_convergence_tester(&cct);
solver.set_running_precision(&precision);
solver.set_initial_guesser(&initial_guesser);
Expand Down
4 changes: 1 addition & 3 deletions templates/standard_model_low_scale_spectrum_generator.hpp.in
Expand Up @@ -50,7 +50,6 @@ class @ModelName@_spectrum_generator
public:
@ModelName@_spectrum_generator()
: @ModelName@_spectrum_generator_interface<T>()
, solver()
, susy_scale_constraint()
, low_scale_constraint()
, matching()
Expand All @@ -69,7 +68,6 @@ public:
void write_running_couplings(const std::string& filename = "@ModelName@_rgflow.dat") const;

private:
RGFlow<T> solver;
@ModelName@_susy_scale_constraint<T> susy_scale_constraint;
standard_model::Standard_model_low_scale_constraint<T> low_scale_constraint;
@ModelName@_standard_model_Matching<T> matching;
Expand Down Expand Up @@ -167,7 +165,7 @@ void @ModelName@_spectrum_generator<T>::run(const softsusy::QedQcd& qedqcd,
Two_scale_increasing_precision precision(
10.0, this->settings.get(Spectrum_generator_settings::precision));

solver.reset();
RGFlow<T> solver;
solver.set_convergence_tester(&cct);
solver.set_running_precision(&precision);
solver.set_initial_guesser(&initial_guesser);
Expand Down

0 comments on commit 853a414

Please sign in to comment.