nf2ff: workaround bad matlab memory management

pull/1/head
Thorsten Liebig 2011-12-19 10:49:41 +01:00
parent 2a9b39565a
commit 37922d3529
1 changed files with 5 additions and 1 deletions

View File

@ -47,7 +47,11 @@ for n=find(nf2ff.directions==1)
[Hf{n}, H_mesh{n}] = ReadHDF5Dump( [Sim_Path '/' filenames_H{n}], 'Frequency', f );
%clear out time domain data
Hf{n} = rmfield(Hf{n},'TD');
% matlab error concerning memory management
% perform memory garbage collection
pack
% reshape mesh into row vector
mesh{n}.x = reshape( E_mesh{n}.lines{1}, 1, [] );
mesh{n}.y = reshape( E_mesh{n}.lines{2}, 1, [] );