Changeset 24589
- Timestamp:
- 02/26/20 08:08:59 (5 years ago)
- Location:
- issm/trunk-jpl/src/m/classes/clusters
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/clusters/generic.py
r24569 r24589 40 40 41 41 #initialize cluster using user settings if provided 42 if os.path.exists(self.name + '_settings.py'): 43 exec(compile(open(self.name + '_settings.py').read(), self.name + '_settings.py', 'exec'), globals()) 42 try: 43 self = generic_settings(self) 44 except NameError: 45 print("generic_settings.py not found, using default settings") 46 else: 47 raise 48 44 49 45 50 #OK get other fields 46 51 self = options.AssignObjectFields(self) 47 52 # }}} 48 49 53 def __repr__(self): # {{{ 50 54 # display the object … … 61 65 return s 62 66 # }}} 63 64 67 def checkconsistency(self, md, solution, analyses): # {{{ 65 68 if self.np < 1: … … 135 138 fid.close() 136 139 # }}} 137 138 140 def BuildKrigingQueueScript(self, modelname, solution, io_gather, isvalgrind, isgprof): # {{{ 139 141 #write queuing script … … 173 175 fid.close() 174 176 # }}} 175 176 177 def UploadQueueJob(self, modelname, dirname, filelist): # {{{ 177 178 #compress the files into one zip. … … 187 188 188 189 # }}} 189 190 190 def LaunchQueueJob(self, modelname, dirname, filelist, restart, batch): # {{{ 191 191 print('launching solution sequence on remote cluster') … … 199 199 issmssh(self.name, self.login, self.port, launchcommand) 200 200 # }}} 201 202 201 def Download(self, dirname, filelist): # {{{ 203 202 if m.ispc(): -
issm/trunk-jpl/src/m/classes/clusters/pfe.py
r24269 r24589 46 46 self = pfe_settings(self) 47 47 self.np = self.nprocs() 48 48 49 #OK get other fields 49 50 self = options.AssignObjectFields(self)
Note:
See TracChangeset
for help on using the changeset viewer.