Changeset 911 for trunk/src/series.m
- Timestamp:
- Jun 15, 2015, 10:45:43 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series.m
r910 r911 1916 1916 %create subdirectory for oar command and log files 1917 1917 %DirOARLog=fullfile(OutputDir,'0_LOG'); 1918 %DirOARExe=fullfile(OutputDir,'0_EXE');1919 %if exist(DirOAR,'dir')% delete the content of the dir 0_LOG to allow new input1920 %curdir=pwd;1921 %cd(DirOAR)1922 %delete('*')1923 %cd(curdir)1924 %else1925 %[tild,msg1]=mkdir(DirOAR);1926 %if ~strcmp(msg1,'')1927 %errormsg=['cannot create ' DirOAR ': ' msg1];%error message for directory creation1928 %return1929 %end1930 %end1931 filename_joblist=fullfile(Dir Exe,'0_job_list.txt');%create name of the global executable file1918 DirOAR=fullfile(OutputDir,'0_OAR'); 1919 if exist(DirOAR,'dir')% delete the content of the dir 0_LOG to allow new input 1920 curdir=pwd; 1921 cd(DirOAR) 1922 delete('*') 1923 cd(curdir) 1924 else 1925 [tild,msg1]=mkdir(DirOAR); 1926 if ~strcmp(msg1,'') 1927 errormsg=['cannot create ' DirOAR ': ' msg1];%error message for directory creation 1928 return 1929 end 1930 end 1931 filename_joblist=fullfile(DirOAR,'0_job_list.txt');%create name of the global executable file 1932 1932 filename_log=fullfile(DirLog,'job_list.stdout');%file for output messages of the master oar process 1933 1933 filename_errors=fullfile(DirLog,'job_list.stderr');%file for error messages of the master oar process … … 1963 1963 '"oar-parexec -s -f ' filename_joblist ' '... 1964 1964 '-l ' filename_joblist '.log"\n']; 1965 1966 filename_oarcommand=fullfile(DirExe,'0_oar_command'); 1965 fprintf(oar_command);% display system command on the Matlab command window 1966 [status,result]=system(oar_command)% execute system command and show the result (ID number of the launched job) on the Matlab command window 1967 filename_oarcommand=fullfile(DirOAR,'0_oar_command');% keep track of the command in file '0-OAR/0_oar_command' 1967 1968 fid=fopen(filename_oarcommand,'w'); 1968 fprintf(fid,oar_command); 1969 fprintf(fid,oar_command); % store the command 1970 fprintf(fid,result);% store the result (job ID number) 1969 1971 fclose(fid); 1970 fprintf(oar_command);% display in command line 1971 system(oar_command); 1972 1972 1973 msgbox_uvmat('CONFIRMATION',[ActionName ' launched as ' num2str(NbProcess) ' processes in cluster: press STATUS to see results']) 1973 1974 case 'cluster_pbs' % for LMFA Kepler machine
Note: See TracChangeset
for help on using the changeset viewer.