diff +time/Rk4SecondOrderNonlin.m @ 30:cd2e28c5ecd2

Corrected parameter treatment in nonlin timesteppers.
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 28 Sep 2015 13:23:52 +0200
parents 16acb2775aca
children b5e5b195da1e c6fcee3fcf1b
line wrap: on
line diff
--- a/+time/Rk4SecondOrderNonlin.m	Mon Sep 28 08:47:28 2015 +0200
+++ b/+time/Rk4SecondOrderNonlin.m	Mon Sep 28 13:23:52 2015 +0200
@@ -19,12 +19,12 @@
             default_arg('S',0);
             default_arg('E',0);
 
-            if isnumeric(S) && S == 0
-                S = @(v,t)0;
+            if isnumeric(S)
+                S = @(v,t)S;
             end
 
-            if isnumeric(E) && E == 0
-                E = @(v,t)0;
+            if isnumeric(E)
+                E = @(v)E;
             end
 
             obj.k = k;