Mercurial > repos > public > sbplib
diff +time/SBPInTimeSecondOrderFormImplicit.m @ 463:45a3924140f4 feature/grids
Move f(t) to the RHS
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Thu, 22 Jun 2017 13:06:41 +0200 |
parents | e0caae9ef6ed |
children | d4b999585af1 |
line wrap: on
line diff
--- a/+time/SBPInTimeSecondOrderFormImplicit.m Thu Jun 22 13:06:03 2017 +0200 +++ b/+time/SBPInTimeSecondOrderFormImplicit.m Thu Jun 22 13:06:41 2017 +0200 @@ -11,7 +11,7 @@ end methods - % Solves A*u_tt + B*u_t + C*u + f(t) = 0 + % Solves A*u_tt + B*u_t + C*u = f(t) % A, B can either both be constants or both be function handles, % They can also be omitted by setting them equal to the empty matrix. function obj = SBPInTimeSecondOrderFormImplicit(A, B, C, f, k, t0, v0, v0t, TYPE, order, blockSize) @@ -44,7 +44,7 @@ if ~isempty(f) obj.ff = @(t)[ sparse(m,1); - -f(t); + f(t); ]; else obj.ff = @(t) sparse(2*m,1);