/[pdpsoft]/nl.nikhef.ndpf.mcfloat/trunk/mcfloat
ViewVC logotype

Diff of /nl.nikhef.ndpf.mcfloat/trunk/mcfloat

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2785 by templon, Wed May 13 13:32:01 2015 UTC revision 2786 by templon, Thu May 14 18:23:19 2015 UTC
# Line 134  def getmcjobinfo(nodes): Line 134  def getmcjobinfo(nodes):
134          if mcrun == 0:          if mcrun == 0:
135              rank = emptyslots              rank = emptyslots
136          else:          else:
137              rank = 32*mcrun - emptyslots  # 32 just a number bigger than expected emptyslots value  # the original "optimal" order:      rank = 32*mcrun - emptyslots  # 32 just a number bigger than expected emptyslots value
138                rank = 7168 - 224*float(emptyslots)/mcrun + mcrun  # constants 7168 and 224 only serve to enable a multi-level sort.
139          return rank          return rank
140      slist = sorted(rawlist, key=srtrunningfree)      slist = sorted(rawlist, key=srtrunningfree)
141    

Legend:
Removed from v.2785  
changed lines
  Added in v.2786

grid.support@nikhef.nl
ViewVC Help
Powered by ViewVC 1.1.28