mirror of
https://github.com/wassname/simpeg.git
synced 2026-10-28 13:30:34 +08:00
Added time string printing
This commit is contained in:
1 parent
3f338ddb43
commit
028714b27d
1 file changed
+3
-2
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user