Ignore:
Timestamp:
09/14/09 08:00:29 (16 years ago)
Author:
Mathieu Morlighem
Message:

Added time limit specified in md.waitonlock [minutes]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/classes/public/solveparallel.m

    r1676 r2226  
    2626
    2727%Do we return, or just wait for results?
    28 if md.waitonlock,
     28if md.waitonlock~=0,
    2929        %we wait for the done file
    30         waitonlock([executionpath '/' md.name '.lock']);
    31         %load results
    32         displaystring(md.debug,'loading results from cluster');
    33         md=loadresultsfromcluster(md);
     30        islock=waitonlock([executionpath '/' md.name '.lock'],md.waitonlock);
     31        if islock==0,
     32                %no results to be loaded
     33                disp('The results must be loaded manually with loadmodelfromcluster.');
     34                error(['solveparallel info message: time limit exceeded'])
     35        else
     36                %load results
     37                displaystring(md.debug,'loading results from cluster');
     38                md=loadresultsfromcluster(md);
     39        end
    3440end
Note: See TracChangeset for help on using the changeset viewer.