mirror of
https://github.com/wassname/simpeg.git
synced 2026-06-28 01:00:33 +08:00
Ensure that mesh origin is a float to prevent round off problems.
This commit is contained in:
@@ -26,7 +26,7 @@ class BaseMesh(object):
|
||||
|
||||
# Ensure x0 & n are 1D vectors
|
||||
self._n = np.array(n, dtype=int).ravel()
|
||||
self._x0 = np.array(x0).ravel()
|
||||
self._x0 = np.array(x0, dtype=float).ravel()
|
||||
|
||||
@property
|
||||
def x0(self):
|
||||
|
||||
Reference in New Issue
Block a user