diff --git a/ellipsyswrapper/testsuite.py b/ellipsyswrapper/testsuite.py index af567bd1a5f512f70a391ccb1a4e92df499997f0..01afdf3e12755ae1d39d4514cab1847c06350023 100644 --- a/ellipsyswrapper/testsuite.py +++ b/ellipsyswrapper/testsuite.py @@ -12,7 +12,6 @@ import pkg_resources from ellipsyswrapper.ellipsys_output import EllipSys1DOutput,EllipSys2DOutput, EllipSys3DOutput from ellipsyswrapper.ellipsys_input import read_ellipsys_input - class CaseRunner(object): def __init__(self, kwargs): @@ -94,10 +93,11 @@ class CaseRunner(object): if self.auxilaryfiles: for filename in self.auxilaryfiles: os.system('ln -s ../../../'+self.directory+'/'+filename+' .') + sys.stdout.flush() self._run('output') if self.test_restart: - print 'test restart' + print '### case '+self.casename+': test restart from coarse grid level' # remove output files files = ['grid.%iforce', 'grid.%ipoints', @@ -131,9 +131,10 @@ class CaseRunner(object): fid = open('input.dat', 'w') fid.write(self.inputobj._print()) fid.close() + sys.stdout.flush() self._run('output_rst') # restart again on finer grlev with the other half of iterations. - print 'restarting at finest level from mstep =',mstep[0] + print '### case '+self.casename+': test restart at finest level from mstep =',mstep[0] if os.path.isfile('grid.rst'): os.system('rm grid.rst') os.system('ln -s grid.RST.01 grid.rst') @@ -143,6 +144,7 @@ class CaseRunner(object): fid = open('input.dat', 'w') fid.write(self.inputobj._print()) fid.close() + sys.stdout.flush() self._run('output_rst') # Compare restart files os.system('ln -s grid.RST.01 grid.brst')