Playing with 2.5D DC inversion

TODOs:

     Parallelize ky ... (currently pretty slow)
This commit is contained in:
seogi_macbook
2016-05-03 11:26:28 -07:00
parent 6e12bdc57a
commit a7f89131b4
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -50,6 +50,7 @@ class BaseDCProblem_2D(BaseEMProblem):
dky = np.r_[dky[0], dky]
y = 0.
#TODO: this loop is pretty slow .. (Parellize)
for iky in range(self.nky):
ky = self.kys[iky]
A = self.getA(ky)
@@ -94,6 +95,7 @@ class BaseDCProblem_2D(BaseEMProblem):
for rx in src.rxList:
Jtv_temp1 = np.zeros(m.size)
Jtv_temp0 = np.zeros(m.size)
#TODO: this loop is pretty slow .. (Parellize)
for iky in range(self.nky):
u_src = f[src, self._solutionType, iky]
ky = self.kys[iky]
+1 -1
View File
@@ -213,7 +213,6 @@ def gen_DCIPsurvey(endl, mesh, stype, a, b, n):
# Pole-dipole: Moving pole on one end -> [A a MN1 a MN2 ... MNn a B]
SrcList = []
if stype != 'gradient':
for ii in range(0, int(nstn)-1):
@@ -262,6 +261,7 @@ def gen_DCIPsurvey(endl, mesh, stype, a, b, n):
srcClass = DC.Src.Pole([rxClass], M[ii,:])
SrcList.append(srcClass)
# TODO: test gradient array!
elif stype == 'gradient':
# Gradient survey only requires Tx at end of line and creates a square