mirror of
https://github.com/wassname/simpeg.git
synced 2026-08-12 12:30:37 +08:00
changes to CC at middle of first h_r
This commit is contained in:
@@ -22,7 +22,7 @@ class BaseTensorMesh(BaseRectangularMesh):
|
||||
assert type(h_in) is list, 'h_in must be a list'
|
||||
h = range(len(h_in))
|
||||
for i, h_i in enumerate(h_in):
|
||||
if type(h_i) in [int, long, float]:
|
||||
if type(h_i) in [int, long, float, np.int_]:
|
||||
# This gives you something over the unit cube.
|
||||
h_i = self._unitDimensions[i] * np.ones(int(h_i))/int(h_i)
|
||||
assert type(h_i) == np.ndarray, ("h[%i] is not a numpy array." % i)
|
||||
|
||||
Reference in New Issue
Block a user