Mercurial > repos > public > sbplib
diff +noname/calculateSolution.m @ 32:ddfb98209aa2
Fixed a bunch of problems regarding convergence and saving solutions
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Tue, 29 Sep 2015 09:22:22 +0200 |
parents | 791decafe6e4 |
children | c6eb3af205c0 |
line wrap: on
line diff
--- a/+noname/calculateSolution.m Mon Sep 28 21:56:02 2015 +0200 +++ b/+noname/calculateSolution.m Tue Sep 29 09:22:22 2015 +0200 @@ -5,9 +5,10 @@ % order -- order of accuracy of the approximtion % T -- time to calculate solution for % input paramters m, t, order may all be vectors. -function [] = calculateSolution(filename, discrHand, method, m, T, order) +function [] = calculateSolution(filename, discrHand, method, m, T, order, force_flag) + default_arg('force_flag',false); - if exist(filename,'file') + if exist(filename,'file') && ~force_flag fprintf('File ''%s'' already exist.',filename); do_append = yesnoQuestion('Do you want to append to it?'); if ~do_append @@ -81,7 +82,7 @@ end end - + sf.stupidSave(); end end end