Skip to content

Commit

Permalink
Fixed bug in setting of t0 during DASSL.initialize().
Browse files Browse the repository at this point in the history
self.t0 was not set to t0 during the call to initialize. This could
present problems if the solver is used multiple times.
  • Loading branch information
jwallen committed Jan 29, 2011
1 parent b8c04aa commit 0924dda
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pydas.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ cdef class DASSL:
self.ipar = np.zeros(1, np.int32)

# Set initial conditions
self.t = t0
self.y = np.zeros(neq, np.float64)
for i in range(neq):
self.y[i] = y0[i]
Expand Down

0 comments on commit 0924dda

Please sign in to comment.