Skip to content

Commit f79f134

Browse files
author
Thomas Baumann
committed
Removed storing uold as dependency of the embedded error estimate in the
RK case
1 parent d536051 commit f79f134

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pySDC/implementations/convergence_controller_classes/estimate_embedded_error.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def setup(self, controller, params, description):
3030

3131
def dependencies(self, controller, description):
3232
'''
33-
Load the convergence controller that stores the solution of the last sweep
33+
Load the convergence controller that stores the solution of the last sweep unless we are doing Runge-Kutta
3434
3535
Args:
3636
controller (pySDC.Controller): The controller
@@ -39,7 +39,8 @@ def dependencies(self, controller, description):
3939
Returns:
4040
None
4141
'''
42-
controller.add_convergence_controller(StoreUOld, description=description)
42+
if RungeKutta not in description['sweeper_class'].__bases__:
43+
controller.add_convergence_controller(StoreUOld, description=description)
4344
return None
4445

4546
def estimate_embedded_error_serial(self, L):

0 commit comments

Comments
 (0)