nf2ff: workaround bad matlab memory management
parent
2a9b39565a
commit
37922d3529
|
@ -48,6 +48,10 @@ for n=find(nf2ff.directions==1)
|
||||||
%clear out time domain data
|
%clear out time domain data
|
||||||
Hf{n} = rmfield(Hf{n},'TD');
|
Hf{n} = rmfield(Hf{n},'TD');
|
||||||
|
|
||||||
|
% matlab error concerning memory management
|
||||||
|
% perform memory garbage collection
|
||||||
|
pack
|
||||||
|
|
||||||
% reshape mesh into row vector
|
% reshape mesh into row vector
|
||||||
mesh{n}.x = reshape( E_mesh{n}.lines{1}, 1, [] );
|
mesh{n}.x = reshape( E_mesh{n}.lines{1}, 1, [] );
|
||||||
mesh{n}.y = reshape( E_mesh{n}.lines{2}, 1, [] );
|
mesh{n}.y = reshape( E_mesh{n}.lines{2}, 1, [] );
|
||||||
|
|
Loading…
Reference in New Issue