Mercurial > repos > public > sbplib
comparison +noname/testCfl.m @ 225:de8bcef865b0 feature/beams
noname.testCfl: Added if the run was stable or not to the output.
| author | Jonatan Werpers <jonatan@werpers.com> |
|---|---|
| date | Tue, 28 Jun 2016 16:50:32 +0200 |
| parents | 5046ff7d13b8 |
| children | 2dd9cfad2cac |
comparison
equal
deleted
inserted
replaced
| 224:05304d7792dc | 225:de8bcef865b0 |
|---|---|
| 41 alpha0(1) = alpha; | 41 alpha0(1) = alpha; |
| 42 else | 42 else |
| 43 alpha0(2) = alpha; | 43 alpha0(2) = alpha; |
| 44 end | 44 end |
| 45 | 45 |
| 46 if ok | |
| 47 stability = 'STABLE'; | |
| 48 else | |
| 49 stability = 'UNSTABLE'; | |
| 50 end | |
| 51 | |
| 46 if ~silentFlag | 52 if ~silentFlag |
| 47 fprintf('a = %.3e, n_step=%d max = %.2e\n', alpha, n_step, maxVal); | 53 fprintf('a = %.3e, n_step=%d %8s max = %.2e\n', alpha, n_step, stability, maxVal); |
| 48 end | 54 end |
| 49 end | 55 end |
| 50 | 56 |
| 51 if silentFlag | 57 if silentFlag |
| 52 fprintf('Last calculated: a = %.3e, n_step=%d max = %.2e\n', alpha, n_step, maxVal); | 58 fprintf('Last calculated: a = %.3e, n_step=%d max = %.2e\n', alpha, n_step, maxVal); |
