Ignore:
Timestamp:
May 30, 2015, 1:26:33 PM (9 years ago)
Author:
sommeria
Message:

walltime estimate introduced in series, and option of result file overwrite

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/series/civ_series.m

    r897 r904  
    7070    Data.OutputSubDirMode='last'; %select the last subDir in the input table as root of the output subdir name (option 'all'/'first'/'last', 'all' by default)
    7171    Data.OutputFileMode='NbInput_i';% one output file expected per value of i index (used for waitbar)
     72    Data.CheckOverwriteVisible='on'; % manage the overwrite of existing files (default=1)
    7273    return
    7374end
     
    325326maskname='';% initiate the mask name
    326327tic;
     328CheckOverwrite=1;%default
     329if isfield(Param,'CheckOverwrite')
     330    CheckOverwrite=Param.CheckOverwrite;
     331end
    327332for ifield=1:NbField
    328333    if ~isempty(RUNHandle)% update the waitbar in interactive mode with GUI series  (checkrun=1)
     
    350355                    j1_series_Civ1(ifield),j2_series_Civ1(ifield));
    351356            end
     357        end
     358        if ~CheckOverwrite && exist(ncfile,'file')         
     359        continue% skip iteration if the mode overwrite is desactivated and the result file already exists
    352360        end
    353361    end
     
    861869            disp(errormsg)
    862870        end
    863         disp(['ellapsed time ' num2str(toc) ' s'])
     871        disp(['ellapsed time ' num2str(toc/60,2) ' minutes'])
    864872    end
    865873end
Note: See TracChangeset for help on using the changeset viewer.