Skip to content

Commit

Permalink
using more efficient version of tadpole_equations()
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Voigt authored and Alexander Voigt committed Aug 4, 2016
1 parent a58e267 commit 6b2bcc2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions templates/mass_eigenstates.cpp.in
Expand Up @@ -282,14 +282,12 @@ int CLASSNAME::tadpole_equations(const gsl_vector* x, void* params, gsl_vector*
if (ewsb_loop_order > 0)
model->calculate_DRbar_masses();

double tadpole[number_of_ewsb_equations] = { 0. };

model->tadpole_equations(tadpole);
const auto tadpole(model->tadpole_equations());

for (std::size_t i = 0; i < number_of_ewsb_equations; ++i)
gsl_vector_set(f, i, tadpole[i]);

return is_finite<number_of_ewsb_equations>(tadpole) ? GSL_SUCCESS : GSL_EDOM;
return is_finite(tadpole) ? GSL_SUCCESS : GSL_EDOM;
}

/**
Expand Down

0 comments on commit 6b2bcc2

Please sign in to comment.