summaryrefslogtreecommitdiff
path: root/diff.py
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2018-05-31 09:20:11 +0200
committerAnton Khirnov <anton@khirnov.net>2018-05-31 09:20:11 +0200
commitca6625ba0966cb22c60050b9ce158ef0db5b02df (patch)
tree9b2ed7b5186780127140e8867d23bdd245ee53e6 /diff.py
parent870b37944c3513cdf10bd26f7e6dcc3fabf6557d (diff)
diff: add the missing power for higher order derivatives
Diffstat (limited to 'diff.py')
-rw-r--r--diff.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/diff.py b/diff.py
index bd9a135..553ee69 100644
--- a/diff.py
+++ b/diff.py
@@ -113,7 +113,7 @@ class FiniteDifferenceUniform(object):
for s, c in zip(slices_src, coeff):
ret[tuple(slicelist_ret)] += c * arr[tuple(s)]
- ret[tuple(slicelist_ret)] /= (div * dx)
+ ret[tuple(slicelist_ret)] /= (div * (dx ** self.diff_order))
if bound_lower:
if self.acc_order > 2: