sabago / pysph

Automatically exported from code.google.com/p/pysph
0 stars 0 forks source link

few kernels tests fail with Enthought EPD #4

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. install Enthought EPD (epd-6.2-2-rh5-x86_64 - Academic license)
2. compile pysph (rev 117:7fc4a5e2aac2)
3. make test

What is the expected output?
All tests (204) should pass

What do you see instead?
3 tests fail. Here's the terminal output

make test
python `which nosetests` --exe /home/pankaj/ddp/pysph-local/source/pysph
................................................................................
............F...FF..............................................................
............................................
======================================================================
FAIL: Test for the normalization of the kernel in 1D.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/pankaj/ddp/pysph-local/source/pysph/base/tests/test_kernels.py", line 765, in test_gradient1D
    self.assertAlmostEqual(val, 0, 4)
AssertionError: 0.030188479999999907 != 0 within 4 places
-------------------- >> begin captured stdout << ---------------------
W8Kernel::py_gradient 1D Normalization.  4 decimal places

--------------------- >> end captured stdout << ----------------------

======================================================================
FAIL: Test for the normalization of the kernel in 1D.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/pankaj/ddp/pysph-local/source/pysph/base/tests/test_kernels.py", line 849, in test_gradient2D
    self.assertAlmostEqual(val.x, 0, 10)
AssertionError: 0.0095830315708822621 != 0 within 10 places
-------------------- >> begin captured stdout << ---------------------
W8Kernel::py_gradient 2D Normalization.  10 decimal places

--------------------- >> end captured stdout << ----------------------

======================================================================
FAIL: Test for the first moment of the function in 2D
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/pankaj/ddp/pysph-local/source/pysph/base/tests/test_kernels.py", line 871, in test_moment2D
    self.assertAlmostEqual(val.x, 0, 5)
AssertionError: 0.0030009290395354542 != 0 within 5 places
-------------------- >> begin captured stdout << ---------------------
W8Kernel::py_function 2D Moment  5 decimal places

--------------------- >> end captured stdout << ----------------------

----------------------------------------------------------------------
Ran 204 tests in 3.167s

FAILED (failures=3)
make: *** [test] Error 1

Original issue reported on code.google.com by pankaj86 on 6 Oct 2010 at 5:19