Mercurial > repos > public > sbplib
diff +noname/testCfl.m @ 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 | 7249f105e67b |
children | ee9c03dc7f42 |
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