mirror of
https://github.com/wassname/simpeg.git
synced 2026-07-10 00:35:31 +08:00
Float issue on inner products.
This commit is contained in:
@@ -534,6 +534,8 @@ class TensorMesh(BaseRectangularMesh, TensorView, DiffOperators, InnerProducts):
|
||||
"""
|
||||
if materialProperty is None:
|
||||
materialProperty = np.ones(self.nC)
|
||||
elif type(materialProperty) in [float, int, long]:
|
||||
materialProperty = materialProperty * np.ones(M.nC)
|
||||
|
||||
if materialProperty.size == self.nC:
|
||||
if invertProperty:
|
||||
|
||||
Reference in New Issue
Block a user