Mercurial > repos > public > sbplib
comparison +time/ExplicitRungeKuttaDiscreteData.m @ 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 | 4c7532db42cd |
comparison
equal
deleted
inserted
replaced
856:ee4cfb37534d | 857:3c916a00033f |
---|---|
99 end | 99 end |
100 end | 100 end |
101 | 101 |
102 | 102 |
103 methods (Static) | 103 methods (Static) |
104 function k = getTimeStep(lambda) | 104 function k = getTimeStep(lambda, order) |
105 switch obj.order | 105 default_arg('order', 4); |
106 switch order | |
106 case 4 | 107 case 4 |
107 k = rk4.get_rk4_time_step(lambda); | 108 k = time.rk4.get_rk4_time_step(lambda); |
108 otherwise | 109 otherwise |
109 error('Time-step function not available for this order'); | 110 error('Time-step function not available for this order'); |
110 end | 111 end |
111 end | 112 end |
112 end | 113 end |