Commit ca89e444 authored by Pierre Cazenave's avatar Pierre Cazenave

Add some extra information if verbose is set to yes to indicate how many time...

Add some extra information if verbose is set to yes to indicate how many time steps remain to be interpolated
parent 14fe877f
...@@ -39,13 +39,13 @@ function Mobj = get_POLCOMS_tsobc(Mobj, ts) ...@@ -39,13 +39,13 @@ function Mobj = get_POLCOMS_tsobc(Mobj, ts)
% is just the input file times in Modified Julian Day. % is just the input file times in Modified Julian Day.
% %
% EXAMPLE USAGE % EXAMPLE USAGE
% Mobj = get_POLCOMS_tsobc(Mobj, ts, depth) % Mobj = get_POLCOMS_tsobc(Mobj, ts)
% %
% Author(s): % Author(s):
% Pierre Cazenave (Plymouth Marine Laboratory) % Pierre Cazenave (Plymouth Marine Laboratory)
% %
% Revision history % Revision history
% 2013-02-07 First version based on get_POLCOMS_tsobc.m. % 2013-02-07 First version.
% %
%========================================================================== %==========================================================================
...@@ -85,6 +85,9 @@ if ftbverbose ...@@ -85,6 +85,9 @@ if ftbverbose
tic tic
end end
for t = 1:nt for t = 1:nt
if ftbverbose
fprintf('%s : %i of %i timesteps... ', subname, t, nt)
end
% Get the current 3D array of PML POLCOMS-ERSEM results. % Get the current 3D array of PML POLCOMS-ERSEM results.
pctemp3 = pc.ETWD.data(:, :, :, t); pctemp3 = pc.ETWD.data(:, :, :, t);
pcsalt3 = pc.x1XD.data(:, :, :, t); pcsalt3 = pc.x1XD.data(:, :, :, t);
...@@ -211,6 +214,10 @@ for t = 1:nt ...@@ -211,6 +214,10 @@ for t = 1:nt
% FVCOM results array. % FVCOM results array.
fvtemp(:, :, t) = fvtempz; fvtemp(:, :, t) = fvtempz;
fvsal(:, :, t) = fvsalz; fvsal(:, :, t) = fvsalz;
if ftbverbose
fprintf('done.\n')
end
end end
if ftbverbose if ftbverbose
toc toc
......
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