changeset 101:9933169d2651

Adapted testCfl to new opt style parameters in discrs.
author Jonatan Werpers <jonatan@werpers.com>
date Fri, 04 Dec 2015 16:46:32 +0100
parents ce4eecbcb915
children 2fd0fd3e75eb 142974097efc
files +noname/testCfl.m
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/+noname/testCfl.m	Fri Dec 04 16:35:30 2015 +0100
+++ b/+noname/testCfl.m	Fri Dec 04 16:46:32 2015 +0100
@@ -8,14 +8,13 @@
     while( (alpha0(2)-alpha0(1))/alpha0(1) > tol)
         alpha = mean(alpha0);
 
-        ts = discr.getTimestepper(timestepper_method,[],alpha);
+        ts = discr.getTimestepper(struct('method', timestepper_method, 'cfl', alpha));
 
         warning('off','all')
         ts.evolve(T,true);
         warning('on','all')
 
         [v,t] = ts.getV();
-
         max_val = max(v);
 
         if isnan(max_val) || max_val == Inf || max_val > threshold