Changeset 13281
- Timestamp:
- 09/06/12 16:00:19 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/clusters/generic.py
r13170 r13281 80 80 if not isvalgrind: 81 81 if self.interactive: 82 fid.write('mpiexec -np %i %s/issm.exe %s %s %s ' % (self.np,self.codepath,EnumToString(solution)[0],self.executionpath,modelname))82 fid.write('mpiexec -np %i %s/issm.exe %s %s/%s %s ' % (self.np,self.codepath,EnumToString(solution)[0],self.executionpath,dirname,modelname)) 83 83 else: 84 fid.write('mpiexec -np %i %s/issm.exe %s %s %s 2> %s.errlog >%s.outlog ' % (self.np,self.codepath,EnumToString(solution)[0],self.executionpath,modelname,modelname,modelname))84 fid.write('mpiexec -np %i %s/issm.exe %s %s/%s %s 2> %s.errlog >%s.outlog ' % (self.np,self.codepath,EnumToString(solution)[0],self.executionpath,dirname,modelname,modelname,modelname)) 85 85 elif isgprof: 86 86 fid.write('\n gprof %s/issm.exe gmon.out > %s.performance' % (self.codepath,modelname)) … … 88 88 #Add --gen-suppressions=all to get suppression lines 89 89 fid.write('LD_PRELOAD=%s \\\n' % self.valgrindlib) 90 fid.write('mpiexec -np %i %s --leak-check=full --suppressions=%s %s/issm.exe %s %s %s 2> %s.errlog >%s.outlog ' % \91 (self.np,self.valgrind,self.valgrindsup,self.codepath,EnumToString(solution)[0],self.executionpath, modelname,modelname,modelname))90 fid.write('mpiexec -np %i %s --leak-check=full --suppressions=%s %s/issm.exe %s %s/%s %s 2> %s.errlog >%s.outlog ' % \ 91 (self.np,self.valgrind,self.valgrindsup,self.codepath,EnumToString(solution)[0],self.executionpath,dirname,modelname,modelname,modelname)) 92 92 if not io_gather: #concatenate the output files: 93 93 fid.write('\ncat %s.outbin.* > %s.outbin' % (modelname,modelname)) … … 99 99 fid.write('@echo off\n') 100 100 if self.interactive: 101 fid.write('"%s/issm.exe" %s "%s " %s ' % (self.codepath,EnumToString(solution)[0],self.executionpath,modelname))101 fid.write('"%s/issm.exe" %s "%s/%s" %s ' % (self.codepath,EnumToString(solution)[0],self.executionpath,dirname,modelname)) 102 102 else: 103 fid.write('"%s/issm.exe" %s "%s " %s 2> %s.errlog >%s.outlog' % \104 (self.codepath,EnumToString(solution)[0],self.executionpath, modelname,modelname,modelname))103 fid.write('"%s/issm.exe" %s "%s/%s" %s 2> %s.errlog >%s.outlog' % \ 104 (self.codepath,EnumToString(solution)[0],self.executionpath,dirname,modelname,modelname,modelname)) 105 105 fid.close() 106 106 … … 122 122 if not isvalgrind: 123 123 if self.interactive: 124 fid.write('mpiexec -np %i %s/kriging.exe %s %s ' % (self.np,self.codepath,self.executionpath,modelname))124 fid.write('mpiexec -np %i %s/kriging.exe %s/%s %s ' % (self.np,self.codepath,self.executionpath,modelname,modelname)) 125 125 else: 126 fid.write('mpiexec -np %i %s/kriging.exe %s %s 2> %s.errlog >%s.outlog ' % (self.np,self.codepath,self.executionpath,modelname,modelname,modelname))126 fid.write('mpiexec -np %i %s/kriging.exe %s/%s %s 2> %s.errlog >%s.outlog ' % (self.np,self.codepath,self.executionpath,modelname,modelname,modelname,modelname)) 127 127 elif isgprof: 128 128 fid.write('\n gprof %s/kriging.exe gmon.out > %s.performance' & (self.codepath,modelname)) … … 130 130 #Add --gen-suppressions=all to get suppression lines 131 131 fid.write('LD_PRELOAD=%s \\\n' % self.valgrindlib) 132 fid.write('mpiexec -np %i %s --leak-check=full --suppressions=%s %s/kriging.exe %s %s 2> %s.errlog >%s.outlog ' % \133 (self.np,self.valgrind,self.valgrindsup,self.codepath,self.executionpath,modelname,modelname,modelname ))132 fid.write('mpiexec -np %i %s --leak-check=full --suppressions=%s %s/kriging.exe %s/%s %s 2> %s.errlog >%s.outlog ' % \ 133 (self.np,self.valgrind,self.valgrindsup,self.codepath,self.executionpath,modelname,modelname,modelname,modelname)) 134 134 if not io_gather: #concatenate the output files: 135 135 fid.write('\ncat %s.outbin.* > %s.outbin' % (modelname,modelname)) … … 141 141 fid.write('@echo off\n') 142 142 if self.interactive: 143 fid.write('"%s/issm.exe" %s "%s " %s ' % (self.codepath,EnumToString(solution)[0],self.executionpath,modelname))143 fid.write('"%s/issm.exe" %s "%s/%s" %s ' % (self.codepath,EnumToString(solution)[0],self.executionpath,modelname,modelname)) 144 144 else: 145 fid.write('"%s/issm.exe" %s "%s " %s 2> %s.errlog >%s.outlog' % \146 (self.codepath,EnumToString(solution)[0],self.executionpath,modelname,modelname,modelname ))145 fid.write('"%s/issm.exe" %s "%s/%s" %s 2> %s.errlog >%s.outlog' % \ 146 (self.codepath,EnumToString(solution)[0],self.executionpath,modelname,modelname,modelname,modelname)) 147 147 fid.close() 148 148
Note:
See TracChangeset
for help on using the changeset viewer.