Commit 29dddf93 authored by snuverink_j's avatar snuverink_j
Browse files

make quiet more quiet

parent be36eaad
......@@ -149,9 +149,11 @@ def main(argv):
# determine what kind of job should be ran, simulation by default
if doOptimize and os.environ.get('OPTIMIZER'):
if quiet == False:
print('job type: OPTIMIZATION')
inputfilePath = os.environ.get('OPTIMIZER')
if not (inputfilePath and glob.glob(os.path.join(inputfilePath,'*.tmpl'))):
if quiet == False:
print('job type: SIMULATION')
doOptimize = False
if os.environ.get('TEMPLATES'):
......@@ -168,6 +170,7 @@ def main(argv):
elif not os.path.isfile(os.path.join(inputfilePath,baseFileName+'.tmpl')):
print(baseFileName+'.tmpl cannot be found! Check if it exists in '+inputfilePath)
sys.exit()
if quiet == False:
print('baseFileName = '+baseFileName)
dataFile = baseFileName + '.data'
......@@ -187,6 +190,7 @@ def main(argv):
sim = Simulation(opaldict)
qid = sim.run(N, baseFileName, inputfilePath, tmplFile, oinpFile, doTest, doKeep, doNobatch, doOptimize, info, queue, hypert, quiet)
if doNobatch:
if quiet == False:
print( "... finished!\n")
#else:
# print( "SGE-ID= {}\n".format(qid))
......
......@@ -245,6 +245,7 @@ class Simulation:
if quiet == False:
print( 'Done with setup of the OPAL simulation and executing the job on {} cores...\n\n\n'.format(CORES))
ofn, fileExtension = os.path.splitext(oinpFile)
if quiet == False:
print( 'STD output is written to {}.out'.format(ofn))
#execommand = 'mpirun -np ' + str(CORES) + ' ' + opalexe + ' ' + oinpFile + ' 2>&1 | tee ' + ofn + '.out'
outfileName = ofn +'.out'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment