From 028714b27df6a5f6ee370c7be412da700a6a61aa Mon Sep 17 00:00:00 2001 From: GudniRos Date: Mon, 6 Apr 2015 11:08:11 -0700 Subject: [PATCH] Added time string printing --- simpegMT/ProblemMT.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/simpegMT/ProblemMT.py b/simpegMT/ProblemMT.py index 4008b7ab..0d1a923e 100644 --- a/simpegMT/ProblemMT.py +++ b/simpegMT/ProblemMT.py @@ -126,6 +126,8 @@ class MTProblem(Problem.BaseProblem): b = -( self.mesh.edgeCurl * e )/( 1j*omega(freq) ) F[Src, 'b_px'] = b[:,0] F[Src, 'b_py'] = b[:,1] + print 'Ran for {:f} seconds'.format(time.time()-startTime) + sys.stdout.flush() return F #NOTE: add print status statements. if nrProc is None: @@ -136,8 +138,7 @@ class MTProblem(Problem.BaseProblem): pool.map(solveAtFreq,self.survey.freqs) pool.close() pool.join() - print 'Ran for {:f} seconds'.format(time.time()-startTime) - sys.stdout.flush() + return F