File: testsuite-i386.patch

package info (click to toggle)
tasmanian 8.1-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,996 kB
  • sloc: cpp: 34,654; f90: 7,721; python: 7,021; makefile: 224; sh: 64; ansic: 8
file content (20 lines) | stat: -rw-r--r-- 1,105 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: Increase test tolerance
 Needed for i386. Most likely needed because of the 80-bit floating point
 precision on that platform.
 See https://buildd.debian.org/status/fetch.php?pkg=tasmanian&arch=i386&ver=8.1-1&stamp=1739206789&raw=0
Author: Sébastien Villemot <sebastien@debian.org>
Forwarded: no
Last-Update: 2025-02-11
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/SparseGrids/gridtestExternalTests.cpp
+++ b/SparseGrids/gridtestExternalTests.cpp
@@ -774,7 +774,7 @@ bool ExternalTester::performGaussTransfr
         #ifdef Tasmanian_ENABLE_DPCPP
         if (std::abs(sum - 96.0 * 512.0 / 27.0) > 10.0 * Maths::num_tol){ // without 10.0 the test fails on dpcpp with error 1.E-12
         #else
-        if (std::abs(sum - 96.0 * 512.0 / 27.0) > Maths::num_tol){
+        if (std::abs(sum - 96.0 * 512.0 / 27.0) > 2.0 * Maths::num_tol){
         #endif
             cout << sum << "     " << 96.0 * 512.0 / 27.0 << endl;
             cout << "ERROR: sum of weight in transformed gauss-laguerre rule is off by: " << std::abs(sum - 96.0 * 512.0 / 27.0) << endl;