Changeset 20820


Ignore:
Timestamp:
06/28/16 00:09:07 (9 years ago)
Author:
bdef
Message:

NEW:adding a test if outbin is empty which can happen if your run reach the walltime

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/solve/loadresultsfromcluster.py

    r19196 r20820  
    3131
    3232        #If we are here, no errors in the solution sequence, call loadresultsfromdisk.
    33         md=loadresultsfromdisk(md,md.miscellaneous.name+'.outbin')
    34 
     33        if os.path.getsize(md.miscellaneous.name+'.outbin')>0:
     34                md=loadresultsfromdisk(md,md.miscellaneous.name+'.outbin')
     35        else:
     36                print 'WARNING, outbin file is empty for run '+md.miscellaneous.name
     37               
    3538        #erase the log and output files
    3639        if md.qmu.isdakota:
Note: See TracChangeset for help on using the changeset viewer.