Use LocTypeTo to allow interpolation to different grid locations

This commit is contained in:
Lindsey Heagy
2016-05-08 10:35:27 -07:00
parent 069127333d
commit 8278230476
2 changed files with 81 additions and 5 deletions
+1 -1
View File
@@ -350,7 +350,7 @@ class CylMesh(BaseTensorMesh, BaseRectangularMesh, InnerProducts, CylView):
if locType == 'E':
X = self.getInterpolationMatCartMesh(Mrect, locType='Ex', locTypeTo=locTypeTo+'x')
Y = self.getInterpolationMatCartMesh(Mrect, locType='Ey', locTypeTo=locTypeTo+'y')
Z = spzeros(Mrect.nEz, self.nE)
Z = spzeros(getattr(Mrect, 'n' + locTypeTo + 'z'), self.nE)
return sp.vstack((X,Y,Z))
grid = getattr(Mrect, 'grid' + locTypeTo)