Skip to content

Commit 15f42ba

Browse files
committed
Explicit cast to int in Collocation.py..
This is very strange and should not be needed. Yet, this fixes #73, which popped up after updating some package.
1 parent 59a9e5f commit 15f42ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pySDC/Collocation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def _GaussLegendre(M, a, b):
7474
"""
7575
assert a <= b, 'Interval boundaries are corrupt, got %f and %f' % (a,b)
7676

77-
M = M - 1
77+
M = int(M - 1)
7878
M1 = M + 1
7979
M2 = M + 2
8080

0 commit comments

Comments
 (0)