prim sec for different meshes with EB formulation

This commit is contained in:
Lindsey Heagy
2016-03-31 13:27:29 -07:00
parent bf300061bc
commit a478b976bc
4 changed files with 77 additions and 38 deletions
@@ -21,7 +21,7 @@ freq = 1e-1
addrandoms = True
# SrcType = ['MagDipole', 'RawVec'] #or 'MAgDipole_Bfield', 'CircularLoop', 'RawVec'
SrcType = ['PrimSecSigma']
SrcType = ['PrimSecCyl']
def derivTest(fdemType, comp):
+2 -3
View File
@@ -4,9 +4,9 @@ from SimPEG.Utils import mkvc
from SimPEG import Mesh, Tests
import unittest
test1D = False
test1D = True
test2D = True
test3D = False
test3D = True
call1 = lambda fun, xyz: fun(xyz)
call2 = lambda fun, xyz: fun(xyz[:, 0], xyz[:, -1])
@@ -203,7 +203,6 @@ if test2D:
v = call2(funX, self.M.gridN)
P = self.M.getInterpolationMatMesh2Mesh(mesh2, locType=self.type)
print P.shape, v.shape
num = P*v
return np.linalg.norm((num - ana), np.inf)