changeset 462:7dbdf7390265 feature/grids

Fix bug in argument to f during time stepping
author Jonatan Werpers <jonatan@werpers.com>
date Thu, 22 Jun 2017 13:06:03 +0200
parents 0b010f8de7cb
children 45a3924140f4
files +time/SBPInTimeImplicitFormulation.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/+time/SBPInTimeImplicitFormulation.m	Thu Jun 22 13:05:32 2017 +0200
+++ b/+time/SBPInTimeImplicitFormulation.m	Thu Jun 22 13:06:03 2017 +0200
@@ -100,7 +100,7 @@
             RHS = zeros(obj.blockSize*obj.N,1);
 
             for i = 1:length(obj.blockSize)
-                RHS((1 + (i-1)*obj.N):(i*obj.N)) = obj.f(obj.nodes(i));
+                RHS((1 + (i-1)*obj.N):(i*obj.N)) = obj.f(obj.t + obj.nodes(i));
             end
 
             RHS = RHS + obj.K*obj.v;