mirror of
https://github.com/wassname/simpeg.git
synced 2026-10-04 13:00:11 +08:00
analytics return arrays
This commit is contained in:
1 parent
f080c61f74
commit
8d97f322c9
1 file changed
+10
@@ -99,5 +99,15 @@ def AnalyticMagDipoleWholeSpace(XYZ, srcLoc, sig, f, m=1., orientation='X'):
|
||||
Bx = mu_0*Hx
|
||||
By = mu_0*Hy
|
||||
Bz = mu_0*Hz
|
||||
|
||||
if Bx.ndim is 1:
|
||||
Bx = Utils.mkvc(Bx,2)
|
||||
|
||||
if By.ndim is 1:
|
||||
By = Utils.mkvc(By,2)
|
||||
|
||||
if Bz.ndim is 1:
|
||||
Bz = Utils.mkvc(Bz,2)
|
||||
|
||||
return Bx, By, Bz
|
||||
|
||||
Reference in new issue
Block a user