Changeset 922 for trunk/src/series.m


Ignore:
Timestamp:
Nov 24, 2015, 10:48:46 AM (8 years ago)
Author:
sommeria
Message:

corrections quentin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/series.m

    r919 r922  
    17681768extxml=cell(1,NbProcess); % initialisation of the set of labels used for the files documenting each process
    17691769for iprocess=1:NbProcess
     1770    extxml{iprocess}='.xml';
     1771end
     1772for iprocess=1:NbProcess
    17701773    if ~strcmp(get(handles.RUN,'BusyAction'),'queue')% allow for STOP action
    17711774        disp('program stopped by user')
     
    18281831                    case {'PCWIN','PCWIN64'} %Windows system
    18291832                        filexml=regexprep(filexml,'\\','\\\\');% add '\' so that '\' are left as characters
    1830                         system([fullfile(ActionPath,[ActionName '.sh']) ' ' RunTime ' ' filexml]);% TODO: adapt to DOS system
     1833                        system([ActionFullName ' ' RunTime ' ' filexml]);% TODO: adapt to DOS system
    18311834                    case {'GLNX86','GLNXA64','MACI64'}%Linux  system
    1832                         system([fullfile(ActionPath,[ActionName '.sh']) ' ' RunTime ' ' filexml]);
     1835                        system([ActionFullName ' ' RunTime ' ' filexml]);
    18331836                end
    18341837        end
     
    19411944                                'hostname && date \n '...
    19421945                                'umask 002 \n'...
    1943                                 fullfile(ActionPath,[ActionName '.sh']) ' ' RunTime ' ' filexml];%allow writting access to created files for user group
     1946                                ActionFullName ' ' RunTime ' ' filexml];%allow writting access to created files for user group
    19441947                            fprintf(fid,cmd);%fill the executable file with the  char string cmd
    19451948                            fclose(fid);% close the executable file
     
    19511954                    end
    19521955                end
    1953                 msgbox_uvmat('CONFIRMATION',[ActionName ' launched in background: press STATUS to see results'])
     1956                msgbox_uvmat('CONFIRMATION',[ActionFullName ' launched in background: press STATUS to see results'])
    19541957        end
    19551958       
     
    19671970                'hostname && date \n '...
    19681971                'umask 002 \n'...
    1969                 fullfile(ActionPath,[ActionName '.sh']) ' ' RunTime ' ' filexml{iprocess}];%allow writting access to created files for user group
     1972                ActionFullName ' ' RunTime ' ' filexml{iprocess}];%allow writting access to created files for user group
    19701973            else
    19711974                cmd=[...
     
    20212024        WallTimeOneJob=min(4*JobTime+10,WallTimeTotal*60/2);% estimated max time of an individual job for checkpoint
    20222025        disp(['WallTimeOneJob: ' num2str(WallTimeOneJob) ' minutes'])
    2023         oar_command=['oarsub -n UVmat_' ActionName ' '...
     2026        oar_command=['oarsub -n UVmat_' ActionFullName ' '...
    20242027            '-t idempotent --checkpoint ' num2str(WallTimeOneJob*60) ' '...
    20252028            '-l /core=' num2str(NbCore) ','...
     
    20282031            '-O ' filename_log ' '...
    20292032            extra_oar ' '...
    2030             '"oar-parexec -s -f ' filename_joblist ' '...
     2033           '"oar-parexec -s -f ' filename_joblist ' '...
    20312034            '-l ' filename_joblist '.log"'];
     2035       
     2036
     2037       
    20322038        fprintf(oar_command);% display  system command on the Matlab command window
    20332039        [status,result]=system(oar_command)% execute system command and show the result (ID number of the launched job) on the Matlab command window
     
    20372043        fprintf(fid,result);% store the result (job ID number)
    20382044        fclose(fid);
    2039         msgbox_uvmat('CONFIRMATION',[ActionName ' launched as  ' num2str(NbProcess) ' processes in cluster: press STATUS to see results'])
     2045        msgbox_uvmat('CONFIRMATION',[ActionFullName ' launched as  ' num2str(NbProcess) ' processes in cluster: press STATUS to see results'])
    20402046       
    20412047    case 'cluster_pbs' % for LMFA Kepler machine
     
    20782084        fprintf(pbs_command);% display in command line
    20792085        %system(pbs_command);
    2080         msgbox_uvmat('CONFIRMATION',[ActionName ' command ready to be launched in cluster'])
     2086        msgbox_uvmat('CONFIRMATION',[ActionFullName ' command ready to be launched in cluster'])
    20812087    case 'python'
    20822088        command = [
Note: See TracChangeset for help on using the changeset viewer.