TOPAS is telling you it can't find a macro called Cu6_Ni_Edge
that has the same number of arguments that you have given it.
The macro's signature is defined as
Cu6_Ni_Edge(
vymin_on_ymax,
ccuKb, vcuKb,
max_lam,
cedge, vedge,
ca_white, va_white,
cb_white, vb_white,
ca_erf, va_erf,
cedge_extra, vedge_extra
)
which has 14 arguments
You are trying to call it with
Cu6_Ni_Edge
(
0.0001,
@, 0.00177`,
1.4,
1.8, ,
1.4879, @,
375.28836, @,
0.00000, @,
0.01155, @,
13.88745, @,
1.27241, @,
0.00588
)
which has 19 arguments, so the lookup is working incorrectly.
You should try
Cu6_Ni_Edge
(
0.0001,
@, 0.00177`, ' Kbeta intensity
1.8, ' min/max lam
!edge ,1.4879, ' edge
@, 0.01155, ' a_white
@, 13.88745, ' b_white
@, 375.28836_LIMIT_MIN_60, ' a_erf
@, 0.00588 ' edge_scale
)
assuming that your comments line up with what the values of the arguments represent.