Permalink
Browse files

SPLIT: Fix handling of split weights.

  • Loading branch information...
1 parent 4311f09 commit eb971e86d74d93baee2f2c5700671ae57bd0714d @memmett committed Jul 3, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 pyweno/kernels.py
View
@@ -362,7 +362,10 @@ def reconstruction(self):
if not self.weights_normalised:
acc0 = acc0 / acc1
- acc = acc - scale[l,s] * acc0
+ if pm == 'p':
+ acc = acc + scale[l,s] * acc0
+ else:
+ acc = acc - scale[l,s] * acc0
kernel.append(self.assign(fs[l], acc))

0 comments on commit eb971e8

Please sign in to comment.