Changeset 120 for trunk/src/civ.m


Ignore:
Timestamp:
Nov 9, 2010, 5:27:00 PM (13 years ago)
Author:
gostiaux
Message:

gedit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/civ.m

    r119 r120  
    657657    first_i=max(field_i,1);
    658658   
    659     if strcmp(nom_type_ima,'_i_j')
     659     switch nom_type_ima
     660        case {'_i_j','%01dA','%02dA','%03dA','%04dA'}
    660661        field_i=field_count;
    661662        field_j=1;
     
    671672        end
    672673        nb_field_j=field_j-1;% last detected field number
    673     end
     674     end
     675
    674676   
    675677   
     
    677679    %   dt=(1/1000)*str2num(get(handles.dt,'String'));
    678680    time=(0:nb_field-1)';% time=file index -1  by default
    679     if strcmp(nom_type_ima,'_i_j')
     681
     682    switch nom_type_ima
     683        case {'_i_j','%01dA','%02dA','%03dA','%04dA'}
    680684        % time=[0:nb_field-1]'*ones(1,nb_field_j);% time=file index -1  by default
    681         time=[0:nb_field-1]'*[0:nb_field_j-1];% time=file index -1  by default
     685        [x,y]=meshgrid([0:2-1],[0:152-1]);
     686        time=x+y;
     687%         time=[0:nb_field-1]'*[0:nb_field_j-1];% time=file index -1  by default
    682688    end
    683689   
     
    691697%   last_j=1;
    692698% end
     699
    693700if exist('time','var')
    694701    if size(time,1)+size(time,2)>=3 % if there are at least two time values to define dt
     
    27322739            %% to lauch the jobs locally :
    27332740            if(isunix)
    2734                 eval(['!. ' filename_bat ' &']);
    2735                 display(['!. ' filename_bat ' &'])
     2741                cmd_str=['!at -qb now -f ' filename_bat ' &']; %ou at -qb now -f
     2742                eval(cmd_str);
     2743                display(cmd_str);
    27362744            else
    2737                 eval(['!' filename_bat ' &']);
    2738                 display(['!' filename_bat ' &'])
     2745                cmd_str=['!' filename_bat ' &'];
     2746                eval(cmd_str);
     2747                display(cmd_str);
    27392748            end
    27402749        end
     
    48914900fclose(fid);
    48924901
    4893 cmd_CIV1=[sparam.Civ1Bin ' -f ' filename '.cmx' ]; % redirect standard output to the log file
     4902cmd_CIV1=[sparam.Civ1Bin ' -f ' filename '.cmx >' filename '.log' ]; % redirect standard output to the log file
    48944903cmd_CIV1=regexprep(cmd_CIV1,'\\','\\\\');
    48954904namelog=regexprep(namelog,'\\','\\\\');
Note: See TracChangeset for help on using the changeset viewer.