Edge Inner products in 2D NOTE: still has bugs.

This commit is contained in:
Rowan Cockett
2013-08-05 12:16:55 -07:00
parent e073eaeb8b
commit 3d936e07a1
4 changed files with 92 additions and 21 deletions
+5 -1
View File
@@ -140,7 +140,11 @@ class OrderTest(unittest.TestCase):
max_h_old = max_h
print '---------------------------------------------'
passTest = np.mean(np.array(order)) > self.tolerance*self.expectedOrder
# passTest = len(np.where(np.array(order) > self.tolerance*self.expectedOrder)[0]) > np.floor(0.75*len(order))
if passTest:
print ['The test be workin!', 'You get a gold star!', 'Yay passed!', 'Happy little convergence test!', 'That was easy!'][np.random.randint(5)]
else:
print 'Failed to pass test on ' + self._meshType + '.'
print ''
self.assertTrue(passTest)
if __name__ == '__main__':