コード例 #1
0
 def apply_inverse_mass(self, array):
     coors = self.tensorproductspace.coors if self.tensorproductspace else self.coors
     if not coors.is_cartesian:  # mass matrix may not be diagonal, or there is scaling
         return SpectralBase.apply_inverse_mass(self, array)
     return array
コード例 #2
0
 def apply_inverse_mass(self, array):
     if not self.coors.is_cartesian:  # mass matrix may not be diagonal
         return SpectralBase.apply_inverse_mass(self, array)
     return array