Changeset 911 for trunk/src/series.m


Ignore:
Timestamp:
Jun 15, 2015, 10:45:43 PM (9 years ago)
Author:
sommeria
Message:

bug repaired in civ_series (mask problem) and clarification of output for OAR in series

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/series.m

    r910 r911  
    19161916        %create subdirectory for oar command and log files
    19171917        %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 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(DirExe,'0_job_list.txt');%create name of the global executable file
     1918        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
    19321932        filename_log=fullfile(DirLog,'job_list.stdout');%file for output messages of the master oar process
    19331933        filename_errors=fullfile(DirLog,'job_list.stderr');%file for error messages of the master oar process
     
    19631963            '"oar-parexec -s -f ' filename_joblist ' '...
    19641964            '-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'
    19671968        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)
    19691971        fclose(fid);
    1970         fprintf(oar_command);% display in command line
    1971         system(oar_command); 
     1972
    19721973        msgbox_uvmat('CONFIRMATION',[ActionName ' launched as  ' num2str(NbProcess) ' processes in cluster: press STATUS to see results'])
    19731974    case 'cluster_pbs' % for LMFA Kepler machine
Note: See TracChangeset for help on using the changeset viewer.