[ffc] 01/01: Add patch to fix float division
Johannes Ring
johannr-guest at moszumanska.debian.org
Fri Jun 2 10:28:55 UTC 2017
This is an automated email from the git hooks/post-receive script.
johannr-guest pushed a commit to annotated tag debian/2016.2.0-3
in repository ffc.
commit 1bbd7ac46c47e5d4b9df15562342023fc268d5b6
Author: Johannes Ring <johannr at simula.no>
Date: Fri Jun 2 12:24:58 2017 +0200
Add patch to fix float division
---
debian/changelog | 7 +++++++
debian/patches/fix-float-division.patch | 28 ++++++++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 36 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index c32ea04..347cc49 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+ffc (2016.2.0-3) unstable; urgency=medium
+
+ * d/patches/fix-float-division.patch: Add patch to fix float division
+ of indices in tensorreordering.
+
+ -- Johannes Ring <johannr at simula.no> Fri, 02 Jun 2017 11:00:02 +0200
+
ffc (2016.2.0-2) unstable; urgency=medium
[ Johannes Ring ]
diff --git a/debian/patches/fix-float-division.patch b/debian/patches/fix-float-division.patch
new file mode 100644
index 0000000..0915917
--- /dev/null
+++ b/debian/patches/fix-float-division.patch
@@ -0,0 +1,28 @@
+From c8ef816ed45336d5fd7e9689c40cb1150d71d71f Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Martin=20Sandve=20Aln=C3=A6s?= <martinal at simula.no>
+Date: Mon, 9 Jan 2017 15:28:08 +0100
+Subject: [PATCH] Fix float division of indices in tensorreordering.
+
+---
+ ffc/tensor/tensorreordering.py | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/ffc/tensor/tensorreordering.py b/ffc/tensor/tensorreordering.py
+index 1fbe293..76119c3 100644
+--- a/ffc/tensor/tensorreordering.py
++++ b/ffc/tensor/tensorreordering.py
+@@ -45,9 +45,9 @@ def reorder_entries(terms):
+ for i in range(len(restrictions)):
+ dim = dims[i]
+ if restrictions[i] == "+":
+- position = position + [slice(0, dim / 2)]
++ position = position + [slice(0, dim // 2)]
+ elif restrictions[i] == "-":
+- position = position + [slice(dim / 2, dim)]
++ position = position + [slice(dim // 2, dim)]
+ else:
+ position = position + [slice(0, dim)]
+
+--
+2.7.4.1.g5468f9e
+
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..ecba226
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+fix-float-division.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/fenics/ffc.git
More information about the debian-science-commits
mailing list