mirror of
https://github.com/wassname/simpeg.git
synced 2026-10-29 13:40:11 +08:00
Float issue on inner products.
This commit is contained in:
1 parent
48e506f4bb
commit
e59a039052
1 file changed
+2
@@ -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