Ensure that h is a float in all meshes.
This commit is contained in:
Rowan Cockett
2013-10-23 16:44:33 -07:00
parent 3de8ab47d9
commit 9cd6e7ed08
3 changed files with 14 additions and 14 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ class TensorMesh(BaseMesh, TensorView, DiffOperators, InnerProducts):
assert len(h_i.shape) == 1, ("h[%i] must be a 1D numpy array." % i)
# Ensure h contains 1D vectors
self._h = [mkvc(x) for x in h]
self._h = [mkvc(x.astype(float)) for x in h]
def __str__(self):
outStr = ' ---- {0:d}-D TensorMesh ---- '.format(self.dim)