Changeset 120 for trunk/src/civ.m
- Timestamp:
- Nov 9, 2010, 5:27:00 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/civ.m
r119 r120 657 657 first_i=max(field_i,1); 658 658 659 if strcmp(nom_type_ima,'_i_j') 659 switch nom_type_ima 660 case {'_i_j','%01dA','%02dA','%03dA','%04dA'} 660 661 field_i=field_count; 661 662 field_j=1; … … 671 672 end 672 673 nb_field_j=field_j-1;% last detected field number 673 end 674 end 675 674 676 675 677 … … 677 679 % dt=(1/1000)*str2num(get(handles.dt,'String')); 678 680 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'} 680 684 % 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 682 688 end 683 689 … … 691 697 % last_j=1; 692 698 % end 699 693 700 if exist('time','var') 694 701 if size(time,1)+size(time,2)>=3 % if there are at least two time values to define dt … … 2732 2739 %% to lauch the jobs locally : 2733 2740 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); 2736 2744 else 2737 eval(['!' filename_bat ' &']); 2738 display(['!' filename_bat ' &']) 2745 cmd_str=['!' filename_bat ' &']; 2746 eval(cmd_str); 2747 display(cmd_str); 2739 2748 end 2740 2749 end … … 4891 4900 fclose(fid); 4892 4901 4893 cmd_CIV1=[sparam.Civ1Bin ' -f ' filename '.cmx ' ]; % redirect standard output to the log file4902 cmd_CIV1=[sparam.Civ1Bin ' -f ' filename '.cmx >' filename '.log' ]; % redirect standard output to the log file 4894 4903 cmd_CIV1=regexprep(cmd_CIV1,'\\','\\\\'); 4895 4904 namelog=regexprep(namelog,'\\','\\\\');
Note: See TracChangeset
for help on using the changeset viewer.