Changeset 159 for trunk/src/civ.m
- Timestamp:
- Dec 23, 2010, 8:09:20 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/civ.m
r153 r159 1597 1597 index_first=min(index); 1598 1598 index_last=max(index); 1599 box_used=box_test( [index_first : index_last]);1599 box_used=box_test(index_first : index_last); 1600 1600 [box_missing,ind_missing]=min(box_used); 1601 1601 if isequal(box_missing,0) … … 1870 1870 filename_cmx=filecell.nc.civ1{ifile,j};%output netcdf file 1871 1871 filename_cmx(end-1:end+1)='cmx';%name of cmx file 1872 if batch 1873 [Rootbat,Filebat,extbat]=fileparts(filename_cmx); 1874 filename_bat=fullfile(Rootbat,['job_' Filebat extbat]); 1875 else 1876 filename_bat=filename_cmx; 1877 end 1878 filename_bat(end-2:end)='bat'; 1872 1879 1873 1880 %CIV1 … … 2211 2218 end 2212 2219 % create the .bat file: 2213 if batch 2214 [Rootbat,Filebat,extbat]=fileparts(filename_cmx); 2215 filename_bat=fullfile(Rootbat,['job_' Filebat extbat]); 2216 else 2217 filename_bat=filename_cmx; 2218 end 2219 filename_bat(end-2:end)='bat'; 2220 fid=fopen(filename_bat,'w'); 2220 [fid,message]=fopen(filename_bat,'w'); 2221 if isequal(fid,-1) 2222 msgbox_uvmat('ERROR', ['creation of .bat file: ' message]) 2223 return 2224 end 2221 2225 fprintf(fid,cmd); 2222 2226 fclose(fid); … … 2246 2250 2247 2251 if ~batch 2248 [Rootbat,Filebat,extbat]=fileparts(filename_ cmx);2252 [Rootbat,Filebat,extbat]=fileparts(filename_bat); 2249 2253 filename_superbat=fullfile(Rootbat,['job_list.bat']); 2250 2254 fid=fopen(filename_superbat,'w');
Note: See TracChangeset
for help on using the changeset viewer.