Thanks for your reply! The two data sets are taken simultaneously using the same sample, from two data banks, so yes, it would be nonsensical for the two to give different phase fractions!
I had a look at those pages but couldn't figure out how to apply them. I've had another attempt, but still can't get it to work.
Using the macro I have an input of the form:
[...]
prm s1 1`
prm w1 = 100 - w2;: 90`
prm w2 10`
prm w3 =w1;
prm w4 =w2;
xdd 1...
[...]
str
[...]
wt_dets(1,4)
str
[...]
wt_dets(2,4)
xdd 2...
[...]
str
[...]
wt_dets(3,4)
str
[...]
wt_dets(4,4)
for xdds {
for strs 1 to 1 {
[...]
}
for strs 2 to 2 {
[...]
}
}
(N.B. I had to change instances of e.g. [m]#m_if p == 2;[/m] to [m]#m_ifarg p "2"[/m] to get the macro to run - that might be a version issue?)
This keeps giving an exception after a couple of iterations. Is there something obviously wrong with what I've done?
The weight fractions don't seem to be initialised at the values I set (and the scale factors seem to start negative) - do I have to set the weight fractions as w1,w2, etc. by hand or is the idea that that happens automatically by setting the scale factors? How do I get TOPAS to start with the values I set?
Thanks!