Changeset 348 for trunk/src/series/ima_levels_batch.m
- Timestamp:
- Dec 23, 2011, 3:35:53 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/ima_levels_batch.m
r347 r348 33 33 cd(path); 34 34 mkdir([subdir_ima '_levels']); 35 [xx,msg2] = fileattrib( subdir_ima,'+w','g'); %yield writing access (+w) to user group (g)35 [xx,msg2] = fileattrib([subdir_ima '_levels'],'+w','g'); %yield writing access (+w) to user group (g) 36 36 if ~strcmp(msg2,'') 37 37 msgbox_uvmat('ERROR',['pb of permission for ' subdir_ima ': ' msg2])%error message for directory creation … … 88 88 ncores=1; 89 89 walltime_onejob=10;%seconds 90 filename_joblist=fullfile( Rootbat,'job_list.txt');91 fid=fopen(filename_joblist,'w ');90 filename_joblist=fullfile(path,[subdir_ima '_levels'],'job_list.txt') 91 fid=fopen(filename_joblist,'w+') 92 92 for p=1:length(batch_file_list) 93 93 fprintf(fid,[batch_file_list{p} '\n']); 94 94 end 95 fclose(fid) 96 oar_command=['oarsub -n test'...95 fclose(fid); 96 oar_command=['oarsub -n ima_levels '... 97 97 '-l /core=' num2str(ncores) ','... 98 98 'walltime=' datestr(1.05*walltime_onejob/86400*max(length(batch_file_list),ncores)/ncores,13) ' '... … … 100 100 '-O ' regexprep(filename_joblist,'\.txt\>','.log') ' '... 101 101 '"oar-parexec -f ' filename_joblist ' -l ' filename_joblist '.log"']; 102 filename_oarcommand=fullfile( Rootbat,'oar_command');102 filename_oarcommand=fullfile(path,[subdir_ima '_levels'],'oar_command'); 103 103 fid=fopen(filename_oarcommand,'w'); 104 104 fprintf(fid,[oar_command '\n']);
Note: See TracChangeset
for help on using the changeset viewer.