changeset 857:3c916a00033f feature/poroelastic

Bugfix in static getTimeStep method in RungeKuttaDiscreteData
author Martin Almquist <malmquist@stanford.edu>
date Tue, 02 Oct 2018 13:42:11 -0700
parents ee4cfb37534d
children 335b8b1366d4
files +time/ExplicitRungeKuttaDiscreteData.m
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/+time/ExplicitRungeKuttaDiscreteData.m	Tue Oct 02 13:39:10 2018 -0700
+++ b/+time/ExplicitRungeKuttaDiscreteData.m	Tue Oct 02 13:42:11 2018 -0700
@@ -101,10 +101,11 @@
 
 
     methods (Static)
-        function k = getTimeStep(lambda)
-            switch obj.order
+        function k = getTimeStep(lambda, order)
+            default_arg('order', 4);
+            switch order
             case 4
-                k = rk4.get_rk4_time_step(lambda);
+                k = time.rk4.get_rk4_time_step(lambda);
             otherwise
                 error('Time-step function not available for this order');
             end