Skip to content

Commit 8d9b971

Browse files
CHG: use verbose when available
1 parent 3d9b146 commit 8d9b971

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/m/classes/clusters/generic.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ function disp(cluster) % {{{
6666
disp(sprintf(' valgrind: %s',cluster.valgrind));
6767
disp(sprintf(' valgrindlib: %s',cluster.valgrindlib));
6868
disp(sprintf(' valgrindsup: %s',cluster.valgrindsup));
69-
disp(sprintf(' verbose: %s',cluster.verbose));
69+
disp(sprintf(' verbose: %i',cluster.verbose));
7070
disp(sprintf(' shell: %s',cluster.shell));
7171
end
7272
%}}}

src/m/classes/clusters/generic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,13 +200,13 @@ def UploadQueueJob(self, modelname, dirname, filelist): # {{{
200200
compressstring += ' {}.errlog {}.outlog '.format(modelname, modelname)
201201
call(compressstring, shell=True)
202202

203-
print('uploading input file and queuing script')
203+
if self.verbose: print('uploading input file and queuing script')
204204
issmscpout(self.name, self.executionpath, self.login, self.port, [dirname + '.tar.gz'])
205205

206206
# }}}
207207

208208
def LaunchQueueJob(self, modelname, dirname, filelist, restart, batch): # {{{
209-
print('launching solution sequence on remote cluster')
209+
if self.verbose: print('launching solution sequence on remote cluster')
210210
if not isempty(restart):
211211
launchcommand = 'cd {} && cd {} chmod 755 {}.queue && ./{}.queue'.format(self.executionpath, dirname, modelname, modelname)
212212
else:

0 commit comments

Comments
 (0)