mirror of
https://github.com/wassname/simpeg.git
synced 2026-07-09 20:30:17 +08:00
verbosity option.
This commit is contained in:
@@ -15,6 +15,8 @@ class BaseEMProblem(Problem.BaseProblem):
|
||||
Solver = SimpegSolver
|
||||
solverOpts = {}
|
||||
|
||||
verbose = False
|
||||
|
||||
####################################################
|
||||
# Mass Matrices
|
||||
####################################################
|
||||
|
||||
@@ -38,9 +38,9 @@ class BaseTDEMProblem(BaseTimeProblem, BaseEMProblem):
|
||||
if Asolve is not None:
|
||||
Asolve.clean()
|
||||
A = self.getA(tInd)
|
||||
# print 'Factoring... (dt = ' + str(dt) + ')'
|
||||
if self.verbose: print 'Factoring... (dt = ' + str(dt) + ')'
|
||||
Asolve = self.Solver(A, **self.solverOpts)
|
||||
# print 'Done'
|
||||
if self.verbose: print 'Done'
|
||||
rhs = RHS(tInd, F)
|
||||
sol = Asolve.solve(rhs)
|
||||
if sol.ndim == 1:
|
||||
@@ -61,9 +61,9 @@ class BaseTDEMProblem(BaseTimeProblem, BaseEMProblem):
|
||||
if Asolve is not None:
|
||||
Asolve.clean()
|
||||
A = self.getA(tInd)
|
||||
# print 'Factoring... (dt = ' + str(dt) + ')'
|
||||
if self.verbose: print 'Factoring... (dt = ' + str(dt) + ')'
|
||||
Asolve = self.Solver(A, **self.solverOpts)
|
||||
# print 'Done'
|
||||
if self.verbose: print 'Done'
|
||||
rhs = RHS(tInd, F)
|
||||
sol = Asolve.solve(rhs)
|
||||
if sol.ndim == 1:
|
||||
|
||||
Reference in New Issue
Block a user