We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a1614db + 0cd2bb1 commit f372b2eCopy full SHA for f372b2e
4 files changed
examples/cpp/get-subgrids.cpp
@@ -136,11 +136,11 @@ int main() {
136
137
// Check the values of the node entries.
138
assert(node_values_index[0] == 5442.30542919352900); // PyAPI: `subgrid.node_values[0][16]`
139
- assert(node_values_index[1] == 0.03052158400782889); // PyAPI: `subgrid.node_values[1][20]`
140
- assert(node_values_index[2] == 0.03052158400782889); // PyAPI: `subgrid.node_values[2][20]`
+ assert(node_values_index[1] == 0.03052158400782890); // PyAPI: `subgrid.node_values[1][20]`
+ assert(node_values_index[2] == 0.03052158400782890); // PyAPI: `subgrid.node_values[2][20]`
141
142
// PyAPI: `grid.subgrid(0, 0, 0).to_array(subgrid.shape)[16][20][20]`
143
- assert(subgrid_array[index] == -4.936156925096015e-07);
+ assert(subgrid_array[index] == -4.936156925096021e-07);
144
}
145
break;
146
examples/fortran/lhapdf_example.output
@@ -1,6 +1,6 @@
1
Computing predictions with the same PDF: NNPDF31_nlo_as_0118_luxqed
2
- 7.1330573367785985E-005 2.1399172010335785E-004
+ 7.1330573367785999E-005 2.1399172010335790E-004
3
Computing predictions with different PDFs and alphasQ2(NNPDF31_nlo_as_0118_luxqed):
4
- 7.3091433321743418E-005 2.1927429996523019E-004
+ 7.3091433321743418E-005 2.1927429996523024E-004
5
Computing predictions with different PDFs and alphasQ2(MSHT20qed_nnlo):
6
7.3462246623863024E-005 2.2038673987158908E-004
pineappl/src/interpolation.rs
@@ -22,7 +22,7 @@ mod applgrid {
22
for _ in 0..10 {
23
let x = (-yp).exp();
24
let delta = (1.0 - x).mul_add(-5.0, y - yp);
25
- if (delta.abs() < 1e-15) && (delta >= deltap) {
+ if (delta == 0.0) || ((delta.abs() < 2e-15) && (delta.abs() >= deltap.abs())) {
26
return x;
27
28
let deriv = x.mul_add(-5.0, -1.0);
@@ -754,4 +754,20 @@ mod tests {
754
assert!(applgrid::fq20(applgrid::ftau0(q2)).ulps(&q2) < 4);
755
756
757
+
758
+ #[test]
759
+ fn pr_365() {
760
+ assert_approx_eq!(
761
+ f64,
762
+ applgrid::fx2(6.7865509745),
763
+ 0.1010727499933246,
764
+ ulps = 4
765
+ );
766
767
768
+ applgrid::fx2(6.786550974400577),
769
+ 0.10107275000000002,
770
771
772
+ }
773
pineappl/tests/drell_yan_lo.rs
@@ -363,7 +363,7 @@ fn perform_grid_tests(
363
let bins = grid.convolve(&mut convolution_cache, &[], &[], &[], &[(1.0, 1.0, 1.0)]);
364
365
for (result, reference) in bins.iter().zip(reference.iter()) {
366
- assert_approx_eq!(f64, *result, *reference, ulps = 4);
+ assert_approx_eq!(f64, *result, *reference, ulps = 8);
367
368
369
// TEST 5b: `convolve` with `ConvolutionCache::with_two`
@@ -397,8 +397,8 @@ fn perform_grid_tests(
397
398
for (&node_value1, &node_value2, &ref_value) in izip!(&node_values[1], &node_values[2], x_grid)
399
{
400
- assert_approx_eq!(f64, node_value1, ref_value, ulps = 4);
401
- assert_approx_eq!(f64, node_value2, ref_value, ulps = 4);
+ assert_approx_eq!(f64, node_value1, ref_value, ulps = 8);
+ assert_approx_eq!(f64, node_value2, ref_value, ulps = 8);
402
403
404
0 commit comments