[Yt-svn] yt-commit r1114 - in branches/grid-optimization: . tests
mturk at wrangler.dreamhost.com
mturk at wrangler.dreamhost.com
Thu Jan 15 08:43:37 PST 2009
Author: mturk
Date: Thu Jan 15 08:43:36 2009
New Revision: 1114
URL: http://yt.spacepope.org/changeset/1114
Log:
Adding a failing test for cell volume uniqueness
Modified:
branches/grid-optimization/ (props changed)
branches/grid-optimization/tests/test_lagos.py
Modified: branches/grid-optimization/tests/test_lagos.py
==============================================================================
--- branches/grid-optimization/tests/test_lagos.py (original)
+++ branches/grid-optimization/tests/test_lagos.py Thu Jan 15 08:43:36 2009
@@ -332,6 +332,10 @@
self.assertTrue(cg["Density"].min() \
== self.hierarchy.grids[0]["Density"].min())
+ def testCellVolume(self):
+ cg = self.hierarchy.covering_grid(2, [0.0]*3, [1.0]*3, [64,64,64])
+ self.assertEqual(na.unique(cg["CellVolume"]).size, 1)
+
class TestDiskDataType(Data3DBase, DataTypeTestingBase, LagosTestingBase, unittest.TestCase):
def setUp(self):
DataTypeTestingBase.setUp(self)
More information about the yt-svn
mailing list