Reduce number of frequencies in forward problem MT example.

This commit is contained in:
Rowan Cockett
2016-02-16 14:55:17 -08:00
parent 015b940130
commit e464fc0dfd
+3 -3
View File
@@ -9,7 +9,7 @@ try:
except: except:
from SimPEG import Solver from SimPEG import Solver
def run(plotIt=True): def run(plotIt=True, nFreq=1):
""" """
MT: 3D: Forward MT: 3D: Forward
======================= =======================
@@ -40,13 +40,13 @@ def run(plotIt=True):
rxList.append(MT.Rx(simpeg.mkvc(loc,2).T,rxType)) rxList.append(MT.Rx(simpeg.mkvc(loc,2).T,rxType))
# Source list # Source list
srcList =[] srcList =[]
for freq in np.logspace(3,-3,7): for freq in np.logspace(3,-3,nFreq):
srcList.append(MT.SrcMT.polxy_1Dprimary(rxList,freq)) srcList.append(MT.SrcMT.polxy_1Dprimary(rxList,freq))
# Survey MT # Survey MT
survey = MT.Survey(srcList) survey = MT.Survey(srcList)
## Setup the problem object ## Setup the problem object
problem = MT.Problem3D.eForm_ps(M,sigmaPrimary = sigBG) problem = MT.Problem3D.eForm_ps(M, sigmaPrimary=sigBG)
problem.pair(survey) problem.pair(survey)
problem.Solver = Solver problem.Solver = Solver