Changeset 265
- Timestamp:
- Nov 3, 2011, 5:26:12 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/civ.m
r263 r265 1561 1561 'SelectionMode','single',... 1562 1562 'ListString',str,'ListSize',[200 100],'Name','job priority','InitialValue',3); 1563 pvalue=num2str((1-ind_answer)*500); % 1564 1563 1565 if isequal(v,0) % to handle Cancel button and figure close, 1564 1566 errormsg='job cancelled'; … … 1633 1635 case 'Matlab' 1634 1636 if batch 1635 %% v érifier Mtlab installésur le cluster1637 %% vï¿œrifier Mtlab installï¿œ sur le cluster 1636 1638 end 1637 1639 end … … 1738 1740 %% MAIN LOOP 1739 1741 time=get(handles.RootName,'UserData'); %get the set of times 1742 1740 1743 super_cmd=[]; 1741 1744 1742 1745 for ifile=1:nbfield 1743 1746 for j=1:nbslice … … 1936 1939 end 1937 1940 if box_test(4)==1 || box_test(5)==1 || box_test(6)==1 1938 filename_cmx=filecell.nc.civ2{ifile,j};%output netcdf file 1941 % pvalue=num2str((1-ind_answer)*500); 1942 filename_cmx=filecell.nc.civ2{ifile,j};%output netcdf file 1939 1943 filename_cmx(end-1:end+1)='cmx';%name of cmx file 1940 1944 end … … 2122 2126 if batch 2123 2127 switch batch_mode 2124 case 'sge' 2125 pvalue=num2str((1-ind_answer)*500); 2128 case 'sge' 2126 2129 display(['!qsub -p ' pvalue ' -q civ.q -e ' flname '.errors -o ' flname '.log' ' ' filename_bat]); 2127 2130 eval( ['!qsub -p ' pvalue ' -q civ.q -e ' flname '.errors -o ' flname '.log' ' ' filename_bat]); 2128 2131 case 'oar' 2129 eval( ['!chmod +x ' filename_bat]); 2130 eval( ['!oarsub -n CIVX -l /core=1,walltime=00:10:00 ' filename_bat]); 2132 % eval( ['!chmod +x ' filename_bat]); 2133 % %eval( ['!oarsub -n CIVX -l /core=1,walltime=00:10:00 ' filename_bat]); 2134 % eval( ['!oarsub -n CIVX -l "/core=1+{type = ''smalljob''}/licence=1,walltime=00:10:00" ' filename_bat]); 2135 2136 cmd_str=['. ' filename_bat]; 2137 super_cmd{length(super_cmd)+1}=cmd_str; 2138 2131 2139 end 2132 2140 else … … 2223 2231 end 2224 2232 2233 if batch 2234 switch batch_mode 2235 case 'oar' 2236 l=length(super_cmd) 2237 for p=0:floor(l/6); 2238 2239 filename_superbat=fullfile(Rootbat,['job_list_' num2str(p) '.bat']); 2240 fid=fopen(filename_superbat,'w'); 2241 if fid==-1 2242 msgbox_uvmat('ERROR',['cannot create the command file ' filename_superbat]) 2243 return 2244 end 2245 if p==floor(l/6) 2246 kmax=mod(l,6); 2247 else 2248 kmax=6; 2249 end 2250 for k=1:kmax 2251 fprintf(fid,[super_cmd{p*6+k} '\n']); 2252 end 2253 fclose(fid); 2254 if(isunix) 2255 system(['chmod +x ' filename_superbat]); 2256 end 2257 2258 eval( ['!oarsub -n CIVX -l "/core=1+{type = ''smalljob''}/licence=1,walltime=00:10:00" ' filename_superbat]); 2259 end 2260 end 2261 end 2262 2263 2225 2264 if ~batch && ~isequal(CivMode,'Matlab') 2226 2265 [Rootbat,Filebat,extbat]=fileparts(filename_bat);
Note: See TracChangeset
for help on using the changeset viewer.