Changeset 22173
- Timestamp:
- 10/15/17 02:29:51 (7 years ago)
- Location:
- issm/trunk-jpl/src/m
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/clusters/stallo.py
r21987 r22173 1 1 import subprocess 2 import numpy as np 2 3 from fielddisplay import fielddisplay 3 4 from pairoptions import pairoptions … … 47 48 48 49 #initialize cluster using user settings if provided 49 self= vilje_settings(self)50 self=stallo_settings(self) 50 51 #OK get other fields 51 52 self=options.AssignObjectFields(self) 52 self.np=self.numnodes*self. procspernodes53 self.np=self.numnodes*self.cpuspernode 53 54 # }}} 54 55 … … 112 113 fid.write('#SBATCH --nodes=%i' % self.numnodes) 113 114 fid.write('#SBATCH --ntasks-per-nodes==%i' % self.cpuspernode) 114 fid.write('#SBATCH --time=%s\n' % timestring) #walltime is minutes115 fid.write('#SBATCH --time=%s\n' % self.time) #walltime is minutes 115 116 fid.write('#SBATCH --mem-per-cpu=%iGB\n' % self.mem)# mem is in GB 116 if ( mod(self.np,16)+mod(self.np,20))==0:117 if (np.mod(self.np,16)+np.mod(self.np,20))==0: 117 118 fid.write('#SBATCH --ntask=%i\n' % self.np) 118 119 fid.write('#SBATCH --account=%s\n' % self.accountname) -
issm/trunk-jpl/src/m/classes/clusters/vilje.py
r21576 r22173 100 100 fid.write('#PBS -q %s \n' % self.queue) 101 101 fid.write('#PBS -l select=%i:ncpus=%i:mpiprocs=%s\n' % (self.numnodes,self.cpuspernode,self.procspernodes)) 102 103 104 105 102 timeobj=datetime.timedelta(minutes=self.time) 103 m,s=divmod(timeobj.total_seconds(), 60) 104 h,m=divmod(m, 60) 105 timestring="%02d:%02d:%02d" % (h, m, s) 106 106 fid.write('#PBS -l walltime=%s\n' % timestring) #walltime is hh:mm:ss 107 107 #fid.write('#PBS -l mem=%igb\n' % self.mem) -
issm/trunk-jpl/src/m/classes/model.py
r22150 r22173 38 38 from hexagon import hexagon 39 39 from cyclone import cyclone 40 from stallo import stallo 40 41 from balancethickness import balancethickness 41 42 from stressbalance import stressbalance -
issm/trunk-jpl/src/m/geometry/slope.py
r21303 r22173 34 34 35 35 summation=np.array([[1],[1],[1]]) 36 sx=np.dot(surf[index-1 ]*alpha,summation).reshape(-1,)37 sy=np.dot(surf[index-1 ]*beta,summation).reshape(-1,)36 sx=np.dot(surf[index-1,0]*alpha,summation).reshape(-1,) 37 sy=np.dot(surf[index-1,0]*beta,summation).reshape(-1,) 38 38 39 39 s=np.sqrt(sx**2+sy**2)
Note:
See TracChangeset
for help on using the changeset viewer.