Changeset 902


Ignore:
Timestamp:
May 28, 2015, 11:30:04 AM (10 years ago)
Author:
g7moreau
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/series.m

    r901 r902  
    15991599    Param.IndexRange.NbSlice=[];
    16001600end
    1601 if isempty(Param.IndexRange.NbSlice)
    1602     NbProcess=NbCore;% choose one process per core if NbSlice is not imposed
    1603     switch RunMode
    1604         case 'cluster_oar'
    1605             NbProcess=numel(ref_i); % split big list witdh oar-parexec (Gabriel Moreau)
    1606     end
    1607 else
    1608     NbProcess=Param.IndexRange.NbSlice;% the parameter NbSlice sets the nbre of run processes
    1609     NbCore=min(NbCore,NbProcess);% reduces the number of cores if it exceeds the number of processes
    1610 end
    16111601
    16121602%% create the output data directory if needed
     
    17181708        ref_j=first_j:incr_j:last_j;
    17191709    end
     1710end
     1711
     1712if isempty(Param.IndexRange.NbSlice)
     1713    NbProcess=NbCore;% choose one process per core if NbSlice is not imposed
     1714    switch RunMode
     1715        case 'cluster_oar'
     1716            NbProcess=numel(ref_i); % split big list witdh oar-parexec (Gabriel Moreau)
     1717    end
     1718else
     1719    NbProcess=Param.IndexRange.NbSlice;% the parameter NbSlice sets the nbre of run processes
     1720    NbCore=min(NbCore,NbProcess);% reduces the number of cores if it exceeds the number of processes
    17201721end
    17211722BlockLength=ceil(numel(ref_i)/NbProcess);% nbre of input fields in each process
Note: See TracChangeset for help on using the changeset viewer.