Bug fix for the Edge vars.

This commit is contained in:
Rowan Cockett
2013-11-04 15:33:52 -08:00
parent 4dbfc77aba
commit df329c4955
+6 -6
View File
@@ -386,20 +386,20 @@ class TensorMesh(BaseMesh, TensorView, DiffOperators, InnerProducts):
self.vectorNy,
self.vectorNz,
loc[:,0], loc[:,1], loc[:,2])
Qy = spzeros(loc.shape[0], self.nF[1])
Qz = spzeros(loc.shape[0], self.nF[2])
Qy = spzeros(loc.shape[0], self.nE[1])
Qz = spzeros(loc.shape[0], self.nE[2])
Q = sp.hstack([Qx, Qy, Qz])
elif locType == 'Ey':
Qx = spzeros(loc.shape[0], self.nF[0])
Qx = spzeros(loc.shape[0], self.nE[0])
Qy = interpmat(self.vectorNx,
self.vectorCCy,
self.vectorNz,
loc[:,0], loc[:,1], loc[:,2])
Qz = spzeros(loc.shape[0], self.nF[2])
Qz = spzeros(loc.shape[0], self.nE[2])
Q = sp.hstack([Qx, Qy, Qz])
elif locType == 'Ez':
Qx = spzeros(loc.shape[0], self.nF[0])
Qy = spzeros(loc.shape[0], self.nF[1])
Qx = spzeros(loc.shape[0], self.nE[0])
Qy = spzeros(loc.shape[0], self.nE[1])
Qz = interpmat(self.vectorNx,
self.vectorNy,
self.vectorCCz,