From 43d0b0369fba58a044177dc1abb9eab2e5cded2e Mon Sep 17 00:00:00 2001 From: seogi_macbook Date: Tue, 28 Jun 2016 01:02:03 -0700 Subject: [PATCH] Add printing for TDEM fwd problem. --- SimPEG/EM/TDEM/TDEM.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SimPEG/EM/TDEM/TDEM.py b/SimPEG/EM/TDEM/TDEM.py index 92176076..a56982c0 100644 --- a/SimPEG/EM/TDEM/TDEM.py +++ b/SimPEG/EM/TDEM/TDEM.py @@ -34,6 +34,7 @@ class BaseTDEMProblem(Problem.BaseTimeProblem, BaseEMProblem): F[:,self._fieldType+'Solution',0] = self.getInitialFields() # timestep to solve forward + if self.verbose: print '%s\nCalculating fields(m)\n%s'%('*'*50,'*'*50) Ainv = None for tInd, dt in enumerate(self.timeSteps): if Ainv is not None and (tInd > 0 and dt != self.timeSteps[tInd - 1]):# keep factors if dt is the same as previous step b/c A will be the same @@ -57,7 +58,7 @@ class BaseTDEMProblem(Problem.BaseTimeProblem, BaseEMProblem): if sol.ndim == 1: sol.shape = (sol.size,1) F[:,self._fieldType+'Solution',tInd+1] = sol - + if self.verbose: print '%s\nDone calculating fields(m)\n%s'%('*'*50,'*'*50) Ainv.clean() return F