mirror of
https://github.com/wassname/simpeg.git
synced 2026-08-12 12:30:37 +08:00
Indexing
This commit is contained in:
@@ -38,9 +38,9 @@ def getEHfields(m1d,sigma,freq,zd,scaleUD=True):
|
|||||||
# Build the propagation matrix
|
# Build the propagation matrix
|
||||||
|
|
||||||
# Convert fields to down/up going components in layer below current layer
|
# Convert fields to down/up going components in layer below current layer
|
||||||
Pj1 = np.array([[1,1],[yp1[0],-yp1[0]]],dtype=complex)
|
Pj1 = np.array([[1,1],[yp1,-yp1],dtype=complex)
|
||||||
# Convert fields to down/up going components in current layer
|
# Convert fields to down/up going components in current layer
|
||||||
Pjinv = 1./2*np.array([[1,zp[0]],[1,-zp[0]]],dtype=complex)
|
Pjinv = 1./2*np.array([[1,zp,[1,-zp],dtype=complex)
|
||||||
# Propagate down and up components through the current layer
|
# Propagate down and up components through the current layer
|
||||||
elamh = np.array([[np.exp(-1j*k[lnr+1]*h),0],[0,np.exp(1j*k[lnr+1]*h)]])
|
elamh = np.array([[np.exp(-1j*k[lnr+1]*h),0],[0,np.exp(1j*k[lnr+1]*h)]])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user