[dune-grid-glue] 01/02: Increase epsilon to make test pass on i386

Ansgar Burchardt ansgar at moszumanska.debian.org
Wed Dec 7 21:57:26 UTC 2016


This is an automated email from the git hooks/post-receive script.

ansgar pushed a commit to annotated tag debian/2.5.0_20161206g666200e-2
in repository dune-grid-glue.

commit f9924583df0c5d7026e015bb30ab20ec3d38cf85
Author: Ansgar Burchardt <ansgar at debian.org>
Date:   Wed Dec 7 22:19:44 2016 +0100

    Increase epsilon to make test pass on i386
    
    Reference: https://buildd.debian.org/status/fetch.php?pkg=dune-grid-glue&arch=i386&ver=2.5.0%7E20161206g666200e-1&stamp=1481053523
---
 debian/patches/increase-epsilon.patch | 29 +++++++++++++++++++++++++++++
 debian/patches/series                 |  1 +
 2 files changed, 30 insertions(+)

diff --git a/debian/patches/increase-epsilon.patch b/debian/patches/increase-epsilon.patch
new file mode 100644
index 0000000..530cc08
--- /dev/null
+++ b/debian/patches/increase-epsilon.patch
@@ -0,0 +1,29 @@
+From: Ansgar Burchardt <ansgar at debian.org>
+Date: Wed, 07 Dec 2016 22:19:11 +0100
+Subject: increase epsilon to make test pass on i386
+
+--- a/dune/grid-glue/test/couplingtest.hh
++++ b/dune/grid-glue/test/couplingtest.hh
+@@ -48,18 +48,18 @@
+       rIIt->geometryOutside().global(quadPos);
+ 
+     // Test whether local grid0 position is consistent with global grid0 position
+-    if ( (localGrid0Pos-globalGrid0Pos).two_norm() >= 1e-6 )
++    if ( (localGrid0Pos-globalGrid0Pos).two_norm() >= 1e-5 )
+     {
+-      std::cout << __FILE__ << ":" << __LINE__ << ": error: assert( (localGrid0Pos-globalGrid0Pos).two_norm() < 1e-6 ) failed\n";
++      std::cout << __FILE__ << ":" << __LINE__ << ": error: assert( (localGrid0Pos-globalGrid0Pos).two_norm() < 1e-5 ) failed\n";
+       std::cerr << "localGrid0Pos  = " << localGrid0Pos << "\n";
+       std::cerr << "globalGrid0Pos = " << globalGrid0Pos << "\n";
+       success = false;
+     }
+ 
+     // Test whether local grid1 position is consistent with global grid1 position
+-    if ( (localGrid1Pos-globalGrid1Pos).two_norm() >= 1e-6 )
++    if ( (localGrid1Pos-globalGrid1Pos).two_norm() >= 1e-5 )
+     {
+-      std::cout << __FILE__ << ":" << __LINE__ << ": error: assert( (localGrid1Pos-globalGrid1Pos).two_norm() < 1e-6 ) failed\n";
++      std::cout << __FILE__ << ":" << __LINE__ << ": error: assert( (localGrid1Pos-globalGrid1Pos).two_norm() < 1e-5 ) failed\n";
+       std::cerr << "localGrid1Pos  = " << localGrid1Pos << "\n";
+       std::cerr << "globalGrid1Pos = " << globalGrid1Pos << "\n";
+       success = false;
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..408dcf6
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+increase-epsilon.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/dune-grid-glue.git



More information about the debian-science-commits mailing list