Skip to content

Commit

Permalink
unflag all tachyons before the iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Voigt committed Jan 14, 2015
1 parent bed5c19 commit a7ddb7b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/problems.hpp
Expand Up @@ -48,6 +48,7 @@ class Problems {

void unflag_bad_mass(unsigned);
void unflag_tachyon(unsigned);
void unflag_all_tachyons();
void unflag_thrown() { thrown = false; exception_msg = ""; }
void unflag_no_ewsb() { failed_ewsb = false; }
void unflag_no_convergence() { failed_convergence = false; }
Expand Down Expand Up @@ -136,6 +137,13 @@ void Problems<Number_of_particles>::unflag_tachyon(unsigned particle)
tachyons[particle] = false;
}

template <unsigned Number_of_particles>
void Problems<Number_of_particles>::unflag_all_tachyons()
{
for (unsigned i = 0; i < Number_of_particles; ++i)
tachyons[i] = false;
}

template <unsigned Number_of_particles>
bool Problems<Number_of_particles>::is_bad_mass(unsigned particle) const
{
Expand Down
5 changes: 5 additions & 0 deletions templates/two_scale_model.cpp.in
Expand Up @@ -593,6 +593,11 @@ void CLASSNAME::clear_DRbar_parameters()
@clearPhases@
}

void CLASSNAME::clear_problems()
{
problems.unflag_all_tachyons();
}

void CLASSNAME::clear()
{
@ModelName@_soft_parameters::clear();
Expand Down
1 change: 1 addition & 0 deletions templates/two_scale_model.hpp.in
Expand Up @@ -92,6 +92,7 @@ public:

// interface functions
virtual void calculate_spectrum();
virtual void clear_problems();
virtual std::string name() const;
virtual void run_to(double scale, double eps = -1.0);
virtual void print(std::ostream&) const;
Expand Down

0 comments on commit a7ddb7b

Please sign in to comment.