Skip to content

Commit

Permalink
Remove tabs!
Browse files Browse the repository at this point in the history
  • Loading branch information
ketch committed Nov 7, 2016
1 parent 04e4cdf commit bbc810a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nodepy/runge_kutta_method.py
Expand Up @@ -1767,8 +1767,8 @@ def __step__(self,f,t,u,dt,thetas,x=None,estimate_error=False,use_butcher=False)
if self.alpha is None:
use_butcher = True

m=len(self)
u_old = u.copy() # Initial value
m=len(self)
u_old = u.copy()# Initial value
size = np.size(u_old)
y = [np.zeros((size)) for i in range(m+1)]
fy = [np.zeros((size)) for i in range(m)]
Expand All @@ -1785,7 +1785,7 @@ def __step__(self,f,t,u,dt,thetas,x=None,estimate_error=False,use_butcher=False)
y[i] += self.A[i,j]*dt*fy[j]
if x is not None: fy[i][:] = f(t+self.c[i]*dt,y[i],x)
else: fy[i][:] = f(t+self.c[i]*dt,y[i])
u_new=u_old+dt*sum([self.b[j]*fy[j] for j in range(m)])
u_new=u_old+dt*sum([self.b[j]*fy[j] for j in range(m)])

else: # Use Shu-Osher coefficients
v = 1 - self.alpha.sum(1)
Expand Down

0 comments on commit bbc810a

Please sign in to comment.