Commit 5fc8f858 authored by Pierre Cazenave's avatar Pierre Cazenave

Clear the scratch struct on completion of each variable. This prevents MATLAB...

Clear the scratch struct on completion of each variable. This prevents MATLAB issuing warnings about overwriting the struct on successive loops.
parent c7a9bbb5
......@@ -466,6 +466,8 @@ for t = 1:nt
data.(fields{aa}).lat = scratch.(fields{aa}).lat;
data.(fields{aa}).lon = scratch.(fields{aa}).lon;
clearvars scratch
if ftbverbose
if isfield(data, fields{aa})
fprintf('done.\n')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment