Mercurial > repos > public > sbplib
diff +noname/testCfl.m @ 106:eb7f592b9512 feature/arclen-param
Merged heads.
author | Martin Almquist <martin.almquist@it.uu.se> |
---|---|
date | Mon, 07 Dec 2015 18:57:55 +0100 |
parents | 9933169d2651 |
children | ee9c03dc7f42 |
line wrap: on
line diff
--- a/+noname/testCfl.m Mon Dec 07 18:51:41 2015 +0100 +++ b/+noname/testCfl.m Mon Dec 07 18:57:55 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