Changeset 21425
- Timestamp:
- 11/29/16 00:48:00 (8 years ago)
- Location:
- issm/trunk-jpl/src/m/classes/clusters
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/clusters/hexagon.py
r21415 r21425 97 97 fid.write('#PBS -N %s \n' % shortname) 98 98 fid.write('#PBS -l mppwidth=%i,mppnppn=%i\n' % (self.np,self.procspernodes)) 99 timestring= str(datetime.timedelta(minutes=self.time)) 99 timeobj=datetime.timedelta(minutes=self.time) 100 m,s=divmod(timeobj.total_seconds(), 60) 101 h,m=divmod(m, 60) 102 timestring="%02d:%02d:%02d" % (h, m, s) 100 103 fid.write('#PBS -l walltime=%s\n' % timestring) #walltime is hh:mm:ss 101 104 fid.write('#PBS -l mppmem=%imb\n' % int(self.mem/self.procspernodes)) -
issm/trunk-jpl/src/m/classes/clusters/vilje.py
r21415 r21425 98 98 fid.write('#PBS -q %s \n' % self.queue) 99 99 fid.write('#PBS -l select=%i:ncpus=%i:mpiprocs=%s\n' % (self.numnodes,self.cpuspernode,self.procspernodes)) 100 timestring= str(datetime.timedelta(minutes=self.time)) 100 timeobj=datetime.timedelta(minutes=self.time) 101 m,s=divmod(timeobj.total_seconds(), 60) 102 h,m=divmod(m, 60) 103 timestring="%02d:%02d:%02d" % (h, m, s) 101 104 fid.write('#PBS -l walltime=%s\n' % timestring) #walltime is hh:mm:ss 102 105 #fid.write('#PBS -l mem=%igb\n' % self.mem)
Note:
See TracChangeset
for help on using the changeset viewer.