Ignore:
Timestamp:
06/07/17 10:50:54 (8 years ago)
Author:
Eric.Larour
Message:

CHG: merged branch back to trunk-jpl 21754.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/branches/trunk-larour-NatGeoScience2016/src/m/classes/clusters/hexagon.py

    r21050 r21759  
    4141                #initialize cluster using user settings if provided
    4242                self=hexagon_settings(self)
    43                 self.np=self.numnodes*self.procspernodes
     43
    4444                #OK get other fields
    4545                self=options.AssignObjectFields(self)
    46                
     46                self.np=self.numnodes*self.procspernodes
    4747                # }}}
    4848        def __repr__(self):
     
    8181                return self
    8282                # }}}
    83         def BuildQueueScript(self,dirname,modelname,solution,io_gather,isvalgrind,isgprof,isdakota):
     83        def BuildQueueScript(self,dirname,modelname,solution,io_gather,isvalgrind,isgprof,isdakota,isoceancoupling):
    8484                # {{{
    8585
     
    9090                        if version>=6:
    9191                                executable='issm_dakota.exe'
     92                if isoceancoupling:
     93                        executable='issm_ocean.exe'
    9294
    9395                #write queuing script
     
    9799                fid.write('#PBS -N %s \n' % shortname)
    98100                fid.write('#PBS -l mppwidth=%i,mppnppn=%i\n' % (self.np,self.procspernodes))
    99                 timestring= str(datetime.timedelta(minutes=self.time))
     101                timeobj=datetime.timedelta(minutes=self.time)
     102                m,s=divmod(timeobj.total_seconds(), 60)
     103                h,m=divmod(m, 60)
     104                timestring="%02d:%02d:%02d" % (h, m, s)
    100105                fid.write('#PBS -l walltime=%s\n' % timestring) #walltime is hh:mm:ss
    101106                fid.write('#PBS -l mppmem=%imb\n' % int(self.mem/self.procspernodes))
Note: See TracChangeset for help on using the changeset viewer.