Ver Fonte

Merge branch 'release/v3.0.1'

Minor bug fixed.
Snow há 8 anos atrás
pai
commit
8030abbd53
2 ficheiros alterados com 5 adições e 5 exclusões
  1. 1 1
      setup.py
  2. 4 4
      test/test_solve_test_problems.py

+ 1 - 1
setup.py

@@ -4,7 +4,7 @@ from setuptools import setup, find_packages
 
 
 setup(name='hdpg1d',
-      version='3.0',
+      version='3.0.1',
       description='An 1D finite element solver using hybridizable discontinuous\
       Petrov-Galerkin method',
       author='Keyi Ni',

+ 4 - 4
test/test_solve_test_problems.py

@@ -8,9 +8,9 @@ from hdpg1d.adaptation import hdpg1d
 
 
 testData = [
-    ([1e-4, 0, 1, 2, 2, 1, 1], 1e-2),  # diffusion reaction
-    ([0, 1, 0, 2, 2, 1, 1], 0),        # convection
-    # ([1, 1, 0, 2, 2, 1, 1], 1)         # diffusion convection)
+    ([1e-4, 0, 1, 2, 2, 1, 1, 1e-10, 50], 1e-2),  # diffusion reaction
+    ([0, 1, 0, 2, 2, 1, 1, 1e-10, 50], 0),        # convection
+    # ([1, 1, 0, 2, 2, 1, 1,1e-10,50], 1)         # diffusion convection)
 ]
 
 
@@ -22,7 +22,7 @@ class TestClass(object):
         yield coeffTest, expected  # teardown
 
     def test_zeroDivision(self, monkeypatch):
-        coeffTest = coeff(*([0] * 7))
+        coeffTest = coeff(*([0] * 9))
         assert coeffTest.DIFFUSION != 0
 
     def test_solveAdaptive(self, coeffGen):