Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterMeisrimelModelon committed Jan 23, 2024
1 parent c2871b2 commit 169fd74
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
2 changes: 0 additions & 2 deletions src/solvers/odepack.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@ def integrate_start(self, t, y):
"""
Helper program for the initialization of LSODAR
"""
#print('We have rkstarter {} and rkstarter_active {}'.format(self.rkstarter, self._rkstarter_active))
if not(self.rkstarter>1 and self._rkstarter_active):
# first call or classical restart after a discontinuity
ISTATE=1
Expand Down Expand Up @@ -409,7 +408,6 @@ def state_events(t,y):
opts["output_index"] = output_index
# deciding on restarting options
self._rkstarter_active = True if ISTATE == 3 and self.rkstarter > 1 else False
#print('rkstarter_active set to {} and ISTATE={}'.format(self._rkstarter_active, ISTATE))

#Retrieving statistics
self.statistics["nstatefcns"] += IWORK[9]
Expand Down
6 changes: 0 additions & 6 deletions src/solvers/radar5.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,6 @@ def compute_ydelay(self, t, y, past, ipast):
return ydelay

def F(self, t, y, past, ipast):
#print('F:', t, y, past, ipast)

# First find the correct place in the past vector for each time-lag
# then evaluate all required solution components at that point
ydelay = self.compute_ydelay(t,y, past, ipast)
Expand Down Expand Up @@ -277,8 +275,6 @@ def integrate(self, t, y, tf, opts):

#Store the opts
self._opts = opts
#print("INIT", t,y,tf,self.inith, self.problem.ipast)
#print("GRID", self.problem.grid, self.problem.ngrid)
#t, y, h, iwork, flag, past = radar5.assimulo_radar5(self.F, \
a = radar5.assimulo_radar5(self.F, \
self.problem.phi, \
Expand Down Expand Up @@ -316,8 +312,6 @@ def integrate(self, t, y, tf, opts):
#len(past) \
#)
t, y, h, iwork, flag, past = a[0]
#print a[0]
#print len(a[0])
#self.past = copy.deepcopy(past)
self.past = past
self.tk = N.trim_zeros(self.past[::self.idif], 'b')
Expand Down
1 change: 0 additions & 1 deletion tests/solvers/test_odepack.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,6 @@ def test_interpol(self):
self.sim.reset()
t_sol1,y_sol1=self.sim.simulate(0.5)
ind05=N.nonzero(N.array(t_sol)==0.5)[0][0]
#print y_sol[ind05],y_sol1[-1]
nose.tools.assert_almost_equal(y_sol[ind05,0],y_sol1[-1,0],6)

@testattr(stddist = True)
Expand Down

0 comments on commit 169fd74

Please sign in to comment.