Skip to content

Commit 44c558f

Browse files
author
Emmanuel FARHI
committed
mcxtrace: SX: fix wrong mult factor for abs when F2 in barns
1 parent 02eb3bc commit 44c558f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

mcxtrace-comps/samples/Single_crystal.comp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1490,9 +1490,9 @@ TRACE
14901490
//mu = [cm squared . g⁻1]
14911491
//therefore convert to barns if barns set to 1, otherwise to fm^2
14921492
if (hkl_info.flag_barns) { //convert cm^2 into barns
1493-
abs_xsect *= 10E24;
1494-
} else { //convert cm^2 into fm^2, else we assume fm^2
14951493
abs_xsect *= 10E26;
1494+
} else { //convert cm^2 into fm^2, else we assume fm^2
1495+
abs_xsect *= 10E24;
14961496
}
14971497
}
14981498
V0= hkl_info.V0;
@@ -1505,7 +1505,7 @@ TRACE
15051505
if (hkl_info.flag_barns) {
15061506
/*If cross sections are given in barns, we need a scaling factor of 100
15071507
to get scattering lengths in m, since V0 is assumed to be in AA*/
1508-
abs_xlen *= 100; inc_xlen *= 100;
1508+
abs_xlen *= 100; inc_xlen *= 100;
15091509
} /* else assume fm^2 */
15101510
L = hkl_list;
15111511

0 commit comments

Comments
 (0)