1 function save_detailed_simulation_finals(savepath)
2 %
function save_detailed_simulation_final(savepath)
4 % read in the detailed simulations and store
final solutions in single
5 % file. By
this faster L2-error determinatio is possible
8 % files to be generated in the target path:
9 % detail_final.mat : for all mu, this file contains the final
10 % solution as one column
12 % Bernard Haasdonk 29.3.2007
14 if ~exist(savepath,'dir')
18 save(fullfile(savepath,
'UNFINISHED.lock'),
'savepath');
20 load(fullfile(savepath,
'settings.mat'));
22 % appropriately size U:
23 tmp = load(fullfile(savepath,
'detail1.mat'));
26 % load simulation_data
28 tmp = load(fullfile(savepath,['detail',num2str(mu),'.mat']));
31 save(fullfile(savepath,'detail_finals'),'U');
33 delete(fullfile(savepath,'UNFINISHED.lock'));
40 % TO BE ADJUSTED TO NEW SYNTAX