Mercurial > repos > public > sbplib
diff +time/ExplicitRungeKuttaDiscreteData.m @ 859:4c7532db42cd feature/poroelastic
Add method getTimeStepQuadrature to RungeKuttaDiscreteData
author | Martin Almquist <malmquist@stanford.edu> |
---|---|
date | Wed, 03 Oct 2018 10:43:24 -0700 |
parents | 3c916a00033f |
children | c70131daaa6e 7963a9cab637 |
line wrap: on
line diff
--- a/+time/ExplicitRungeKuttaDiscreteData.m Tue Oct 02 13:43:33 2018 -0700 +++ b/+time/ExplicitRungeKuttaDiscreteData.m Wed Oct 03 10:43:24 2018 -0700 @@ -59,6 +59,12 @@ s = obj.s; end + % Returns quadrature weights for stages in one time step + function quadWeights = getTimeStepQuadrature(obj) + [~, b] = obj.getTableau(); + quadWeights = obj.k*b; + end + function obj = step(obj) v = obj.v; a = obj.a;