mirror of
https://github.com/wassname/simpeg.git
synced 2026-08-18 12:30:39 +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
|
# Ensure x0 & n are 1D vectors
|
||||||
self._n = np.array(n, dtype=int).ravel()
|
self._n = np.array(n, dtype=int).ravel()
|
||||||
self._x0 = np.array(x0).ravel()
|
self._x0 = np.array(x0, dtype=float).ravel()
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def x0(self):
|
def x0(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user