Changeset 17264
- Timestamp:
- 02/12/14 15:17:50 (11 years ago)
- Location:
- issm/trunk-jpl/src/m
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/clusters/generic.py
r15939 r17264 37 37 38 38 #get name 39 self.name= options.getfieldvalue('name',socket.gethostname().lower().split('.')[0])39 self.name=gethostname() 40 40 41 41 #initialize cluster using user settings if provided … … 46 46 self=options.AssignObjectFields(self) 47 47 # }}} 48 49 48 def __repr__(self): # {{{ 50 49 # display the object … … 61 60 return s 62 61 # }}} 63 64 62 def checkconsistency(self,md,solution,analyses): # {{{ 65 63 if self.np<1: … … 70 68 return md 71 69 # }}} 72 73 70 def BuildQueueScript(self,dirname,modelname,solution,io_gather,isvalgrind,isgprof): # {{{ 74 71 … … 123 120 fid.close() 124 121 # }}} 125 126 122 def BuildKrigingQueueScript(self,modelname,solution,io_gather,isvalgrind,isgprof): # {{{ 127 123 … … 165 161 fid.close() 166 162 # }}} 167 168 163 def LaunchQueueJob(self,modelname,dirname,filelist): # {{{ 169 164 … … 184 179 issmssh(self.name,self.login,self.port,launchcommand) 185 180 # }}} 186 187 181 def Download(self,dirname,filelist): # {{{ 188 182 … … 195 189 issmscpin(self.name,self.login,self.port,directory,filelist) 196 190 # }}} 197 -
issm/trunk-jpl/src/m/enum/EnumDefinitions.py
r17222 r17264 335 335 def ExtrudeFromTopAnalysisEnum(): return StringToEnum("ExtrudeFromTopAnalysis")[0] 336 336 def SteadystateSolutionEnum(): return StringToEnum("SteadystateSolution")[0] 337 def L2ProjectionTopAnalysisEnum(): return StringToEnum("L2ProjectionTopAnalysis")[0]338 337 def SurfaceSlopeSolutionEnum(): return StringToEnum("SurfaceSlopeSolution")[0] 339 338 def SmoothedSurfaceSlopeXAnalysisEnum(): return StringToEnum("SmoothedSurfaceSlopeXAnalysis")[0] -
issm/trunk-jpl/src/m/miscellaneous/MatlabFuncs.py
r14104 r17264 2 2 import socket 3 3 4 return socket.gethostname() .lower().split('.')[0]4 return socket.gethostname() 5 5 6 6 def ispc(): -
issm/trunk-jpl/src/m/solve/waitonlock.py
r13071 r17264 24 24 25 25 #waitonlock will work if the lock is on the same machine only: 26 if not strcmpi(socket.gethostname() .lower().split('.')[0],cluster):26 if not strcmpi(socket.gethostname(),cluster): 27 27 28 28 print 'solution launched on remote cluster. log in to detect job completion.'
Note:
See TracChangeset
for help on using the changeset viewer.