- Timestamp:
- 06/07/17 10:50:54 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/branches/trunk-larour-NatGeoScience2016/src/m/classes/clusters/hexagon.py
r21050 r21759 41 41 #initialize cluster using user settings if provided 42 42 self=hexagon_settings(self) 43 self.np=self.numnodes*self.procspernodes 43 44 44 #OK get other fields 45 45 self=options.AssignObjectFields(self) 46 46 self.np=self.numnodes*self.procspernodes 47 47 # }}} 48 48 def __repr__(self): … … 81 81 return self 82 82 # }}} 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): 84 84 # {{{ 85 85 … … 90 90 if version>=6: 91 91 executable='issm_dakota.exe' 92 if isoceancoupling: 93 executable='issm_ocean.exe' 92 94 93 95 #write queuing script … … 97 99 fid.write('#PBS -N %s \n' % shortname) 98 100 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) 100 105 fid.write('#PBS -l walltime=%s\n' % timestring) #walltime is hh:mm:ss 101 106 fid.write('#PBS -l mppmem=%imb\n' % int(self.mem/self.procspernodes))
Note:
See TracChangeset
for help on using the changeset viewer.