/[escript]/trunk/downunder/py_src/forwardmodels.py
ViewVC logotype

Diff of /trunk/downunder/py_src/forwardmodels.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4476 by caltinay, Tue Jun 11 03:35:55 2013 UTC revision 4477 by caltinay, Thu Jun 20 02:41:28 2013 UTC
# Line 354  class MagneticModel(ForwardModelWithPote Line 354  class MagneticModel(ForwardModelWithPote
354          super(MagneticModel, self).__init__(domain, w, B, coordinates, fixPotentialAtBottom, tol)          super(MagneticModel, self).__init__(domain, w, B, coordinates, fixPotentialAtBottom, tol)
355          self.__background_magnetic_flux_density = \          self.__background_magnetic_flux_density = \
356                  interpolate(background_magnetic_flux_density, B[0].getFunctionSpace())                  interpolate(background_magnetic_flux_density, B[0].getFunctionSpace())
357          if not  self.getCoordinateTransformation().isCartesian():          if not self.getCoordinateTransformation().isCartesian():
358              self.__F = self.getCoordinateTransformation().getVolumeFactor()              #self.__F = self.getCoordinateTransformation().getVolumeFactor()
359              self.__B_r=self.__background_magnetic_flux_density*self.getCoordinateTransformation().getScalingFactors()*self.getCoordinateTransformation().getVolumeFactor()              self.__B_r=self.__background_magnetic_flux_density*self.getCoordinateTransformation().getScalingFactors()*self.getCoordinateTransformation().getVolumeFactor()
360              self.__B_b=self.__background_magnetic_flux_density/self.getCoordinateTransformation().getScalingFactors()              self.__B_b=self.__background_magnetic_flux_density/self.getCoordinateTransformation().getScalingFactors()
361    

Legend:
Removed from v.4476  
changed lines
  Added in v.4477

  ViewVC Help
Powered by ViewVC 1.1.26