From 6561376b51a96d86e6cc663a26ac0dfa49b71e39 Mon Sep 17 00:00:00 2001 From: Gudni Karl Date: Tue, 17 Feb 2015 17:27:59 -0800 Subject: [PATCH] Fixed bugs and got MTrx.projectFields to work. --- simpegMT/SurveyMT.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/simpegMT/SurveyMT.py b/simpegMT/SurveyMT.py index 8604ed62..e459ce7a 100644 --- a/simpegMT/SurveyMT.py +++ b/simpegMT/SurveyMT.py @@ -68,10 +68,14 @@ class RxMT(Survey.BaseRx): ''' # Get the projection - Pex = self.getP(mesh,'Ex') - Pey = self.getP(mesh,'Ey') - Pbx = self.getP(mesh,'Fx') - Pby = self.getP(mesh,'Fy') + # Pex = self.getP(mesh,'Ex') + # Pey = self.getP(mesh,'Ey') + # Pbx = self.getP(mesh,'Fx') + # Pby = self.getP(mesh,'Fy') + Pex = mesh.getInterpolationMat(self.locs,'Ex') + Pey = mesh.getInterpolationMat(self.locs,'Ey') + Pbx = mesh.getInterpolationMat(self.locs,'Fx') + Pby = mesh.getInterpolationMat(self.locs,'Fy') # Get the fields at location ex_px = Pex*u[src,'e_px'] ey_px = Pey*u[src,'e_px']