Ensure that mesh origin is a float to prevent round off problems.

This commit is contained in:
Dave Marchant
2014-04-15 10:48:26 -07:00
parent 47a148361b
commit acdffe8ef9
+1 -1
View File
@@ -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):