Skip to content

Commit

Permalink
Use exception rather than assert when constructing initial guesser
Browse files Browse the repository at this point in the history
  • Loading branch information
Dylan Harries committed Jan 23, 2017
1 parent 4308371 commit a12f89d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions templates/semi_analytic_high_scale_initial_guesser.cpp.in
Expand Up @@ -51,8 +51,9 @@ namespace flexiblesusy {
, susy_constraint(susy_constraint_)
, high_constraint(high_constraint_)
{
assert(model && "@ModelName@_initial_guesser: Error: pointer to model"
" @ModelName@<Semi_analytic> must not be zero");
if (!model)
throw SetupError("@ModelName@_initial_guesser: Error: pointer to model"
" @ModelName@<Semi_analytic> must not be zero");
}

@ModelName@_initial_guesser<Semi_analytic>::~@ModelName@_initial_guesser()
Expand Down

0 comments on commit a12f89d

Please sign in to comment.