changeset 737:521076a6ffa5 feature/d1_staggered

Update Runge Kutta for discrete data to return stage rates if needed.
author Martin Almquist <malmquist@stanford.edu>
date Wed, 25 Apr 2018 16:58:45 -0700
parents 9c3c180c7ed3
children 44c46bd6913a
files +time/ExplicitRungeKuttaDiscreteData.m
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/+time/ExplicitRungeKuttaDiscreteData.m	Tue Mar 06 11:59:43 2018 -0800
+++ b/+time/ExplicitRungeKuttaDiscreteData.m	Wed Apr 25 16:58:45 2018 -0700
@@ -45,11 +45,12 @@
 
         end
 
-        function [v,t,U,T] = getV(obj)
+        function [v,t,U,T,K] = getV(obj)
             v = obj.v;
             t = obj.t;
             U = obj.U; % Stage approximations in previous time step.
             T = obj.T; % Stage times in previous time step.
+            K = obj.K; % Stage rates in previous time step.
         end
 
         function [a,b,c,s] = getTableau(obj)