mirror of
https://github.com/wassname/simpeg.git
synced 2026-10-29 13:40:11 +08:00
magDipole Bug
This commit is contained in:
1 parent
20d1ad27c8
commit
3f7f95de8c
1 file changed
+3
-1
@@ -37,4 +37,6 @@ def MagneticDipoleVectorPotential(txLoc, obsLoc, component, dipoleMoment=(0., 0.
|
||||
mCr = np.cross(m, dR)
|
||||
r = np.sqrt((dR**2).sum(axis=1))
|
||||
A[:, i] = -(mu_0/(4*pi)) * mCr[:,dimInd]/(r**3)
|
||||
return A
|
||||
if nTx == 1:
|
||||
return A.flatten()
|
||||
return A
|
||||
Reference in new issue
Block a user