Mercurial > repos > public > sbplib
changeset 1120:7963a9cab637 feature/poroelastic
In RungeKuttaDiscreteData, make K and U non-sparse to improve performance by roughly a factor of 3.
author | Martin Almquist <malmquist@stanford.edu> |
---|---|
date | Tue, 07 May 2019 11:41:15 -0700 |
parents | 8984b12feba6 |
children | dd25184e71ec |
files | +time/ExplicitRungeKuttaDiscreteData.m |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/+time/ExplicitRungeKuttaDiscreteData.m Mon May 06 21:23:21 2019 -0700 +++ b/+time/ExplicitRungeKuttaDiscreteData.m Tue May 07 11:41:15 2019 -0700 @@ -39,8 +39,8 @@ error('That RK method is not available'); end - obj.K = sparse(obj.m, obj.s); - obj.U = sparse(obj.m, obj.s); + obj.K = zeros(obj.m, obj.s); + obj.U = zeros(obj.m, obj.s); end