Skip to content

Commit

Permalink
do not hard-code the difference function
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Voigt authored and Alexander Voigt committed Jul 16, 2015
1 parent eb45a79 commit 9a4e578
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion meta/Constraint.m
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@
ToString[Plus @@ (GetNumberOfParameters /@ settings)];

RelativeDifference[a_String, b_String] :=
"RelDiff(" <> a <> ", " <> b <> ")";
"DIFFERENCE(" <> a <> ", " <> b <> ")";

(* input parameters are just set *)
CalculateDifference[{par_ /; IsInputParameter[par], value_}, _, _, _] :=
Expand Down
1 change: 1 addition & 0 deletions templates/root_high_scale_constraint.cpp.in
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ namespace flexiblesusy {
#define MODELCLASSNAME @ModelName@<Root>
#define ARG arg_
#define FUNCTION func_
#define DIFFERENCE(a,b) RelDiff(a,b)

@ModelName@_high_scale_constraint<Root>::@ModelName@_high_scale_constraint()
: Constraint<Root>()
Expand Down
1 change: 1 addition & 0 deletions templates/root_low_scale_constraint.cpp.in
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ namespace flexiblesusy {
#define ALPHA_EM_DRBAR alpha_em_drbar
#define CALCULATE_DRBAR_MASSES() model->calculate_DRbar_masses()
#define FUNCTION func_
#define DIFFERENCE(a,b) RelDiff(a,b)

@ModelName@_low_scale_constraint<Root>::@ModelName@_low_scale_constraint()
: Constraint<Root>()
Expand Down
1 change: 1 addition & 0 deletions templates/root_susy_scale_constraint.cpp.in
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ namespace flexiblesusy {
#define MODEL model
#define MODELCLASSNAME @ModelName@<Root>
#define FUNCTION func_
#define DIFFERENCE(a,b) RelDiff(a,b)

@ModelName@_susy_scale_constraint<Root>::@ModelName@_susy_scale_constraint()
: Constraint<Root>()
Expand Down

0 comments on commit 9a4e578

Please sign in to comment.