@@ -61,6 +61,10 @@ def u_exact(self, t, u_init=None, t_init=None, recompute=False, _t0=None):
6161
6262
6363class ReachTendExactly (ConvergenceController ):
64+ """
65+ This convergence controller will adapt the step size of (hopefully) the last step such that `Tend` is reached very closely.
66+ Please pass the same `Tend` that you pass to the controller to the params for this to work.
67+ """
6468
6569 def setup (self , controller , params , description , ** kwargs ):
6670 defaults = {
@@ -275,7 +279,7 @@ def plot_order(t, dt, steps, num_nodes, e_tol=1e-9, restol=1e-9, ax=None, recomp
275279 ax .legend (frameon = False )
276280
277281
278- def test_order (t = 14 , dt = 1e-1 , steps = 6 ):
282+ def check_order (t = 14 , dt = 1e-1 , steps = 6 ):
279283 prob = RayleighBenard (** PROBLEM_PARAMS )
280284 _ts = [0 , t , t + dt ]
281285 for i in range (len (_ts ) - 1 ):
@@ -326,5 +330,5 @@ def plot_step_size(t0=0, Tend=30, e_tol=1e-3, recompute=False):
326330if __name__ == '__main__' :
327331 # plot_step_size(0, 3)
328332 generate_data_for_fault_stats ()
329- # test_order (t=20, dt=1., steps=7)
333+ # check_order (t=20, dt=1., steps=7)
330334 # stats, _, _ = run_RBC()
0 commit comments