Changeset 896 for trunk/src/series


Ignore:
Timestamp:
May 23, 2015, 5:09:49 PM (10 years ago)
Author:
sommeria
Message:

bug corrected in civ_series/patch

File:
1 edited

Legend:

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

    r895 r896  
    328328    if ~isempty(RUNHandle)% update the waitbar in interactive mode with GUI series  (checkrun=1)
    329329        update_waitbar(WaitbarHandle,ifield/NbField)
    330         if  get(RUNHandle,'Value')&& ~strcmp(get(RUNHandle,'BusyAction'),'queue')
     330        if  ~strcmp(get(RUNHandle,'BusyAction'),'queue')
    331331            disp('program stopped by user')
    332332            break
     
    355355    % if Civ1 computation is requested
    356356    if isfield (Param.ActionInput,'Civ1')
     357        disp('civ1 started')
    357358        par_civ1=Param.ActionInput.Civ1;
    358359        if CheckInputFile % read input images (except in mode Test where it is introduced directly in Param.ActionInput.Civ1.ImageNameA and B)
     
    496497    %% Fix1
    497498    if isfield (Param.ActionInput,'Fix1')
     499         disp('fix1 started')
    498500        if ~isfield (Param.ActionInput,'Civ1')% if we use existing Civ1, remove previous data beyond Civ1
    499501            Fix1_attr=find(strcmp('Fix1',Data.ListGlobalAttribute));
     
    519521    %% Patch1
    520522    if isfield (Param.ActionInput,'Patch1')
     523        disp('patch1 started')
    521524        if check_civx
    522525            errormsg='Civ Matlab input needed for patch';
     
    559562        Data.Civ1_V_smooth(ind_good)=Vres;
    560563        Data.Civ1_FF(ind_good)=FFres;
     564        disp('patch1 performed')
    561565    end
    562566   
    563567    %% Civ2
    564568    if isfield (Param.ActionInput,'Civ2')
     569        disp('civ2 started')
    565570        par_civ2=Param.ActionInput.Civ2;
    566571        if CheckInputFile % read input images (except in mode Test where it is introduced directly in Param.ActionInput.Civ1.ImageNameA and B)
     
    751756        Data.Civ2_C=reshape(ctable,[],1);
    752757        Data.Civ2_F=reshape(F,[],1);
     758        disp('civ2 performed')
    753759    elseif ~isfield(Data,'ListVarName') % we start there, using existing Civ2 data
    754760        if exist('ncfile','var')
     
    773779    %% Fix2
    774780    if isfield (Param.ActionInput,'Fix2')
     781        disp('fix2 started')
    775782        list_param=fieldnames(Param.ActionInput.Fix2)';
    776783        Fix2_param=regexprep(list_param,'^.+','Fix2_$0');% insert 'Fix1_' before  each string in ListFixParam
     
    804811            Data.CivStage=Data.CivStage+1;
    805812        end
    806        
    807813    end
    808814   
    809815    %% Patch2
    810816    if isfield (Param.ActionInput,'Patch2')
     817        disp('patch2 started')
    811818        list_param=fieldnames(Param.ActionInput.Patch2)';
    812819        list_param(strcmp('TestPatch2',list_param))=[];% remove the parameter TestCiv1 from the list
     
    841848        Data.Civ2_FF(ind_good)=FFres;
    842849        Data.CivStage=Data.CivStage+1;
     850        disp('patch2 performed')
    843851    end
    844852   
Note: See TracChangeset for help on using the changeset viewer.