]> SALOME platform Git repositories - tools/solverlab.git/commitdiff
Salome HOME
Reduced mesh size to save running time
authormichael <michael@localhost.localdomain>
Sun, 14 Feb 2021 12:11:24 +0000 (13:11 +0100)
committermichael <michael@localhost.localdomain>
Sun, 14 Feb 2021 12:11:24 +0000 (13:11 +0100)
CDMATH/tests/validation/AnisotropicDiffusion/2DDiffusionEF_skinny_triangles/test_validation2DDiffusionEF_skinny_triangles.py
CDMATH/tests/validation/Poisson/2DPoissonEF_skinny_triangles/test_validation2DPoissonEF_skinny_triangles.py

index bdbeaf07d4c01a25bf151b211ee9670e9a29e060..263ae184dfcbab0476cb6b0f3765fadbb23b1616 100755 (executable)
@@ -12,7 +12,7 @@ def test_validation2DEF_skinny_triangles():
     start = time.time()
     #### 2D FE skinny triangle mesh
     #meshList=[5,9,15,21,31]
-    meshList=['squareWithSkinnyTriangles_0','squareWithSkinnyTriangles_1','squareWithSkinnyTriangles_2','squareWithSkinnyTriangles_3']#,'squareWithSkinnyTriangles_4'
+    meshList=['squareWithSkinnyTriangles_0','squareWithSkinnyTriangles_1','squareWithSkinnyTriangles_2']#,'squareWithSkinnyTriangles_3','squareWithSkinnyTriangles_4'
     mesh_path='../../../ressources/2DSkinnyTriangles/'
     meshType="Regular_skinny_triangles"
     mesh_name='squareWithSkinnyTriangles'
@@ -78,7 +78,7 @@ def test_validation2DEF_skinny_triangles():
     b=(-a2*b1+a1*b2)/det
     
     print( "FE on 2D skinny triangle mesh : scheme order is ", -a )
-    assert abs(a+1.54)<0.1
+    assert abs(a+1.59)<0.01
 
     # Plot of convergence curves
     plt.close()
index 571028272c2f2a6cc81632fde969895bd21e8502..a68ebbe033eab3c66ebcf054f5a3e760284d9799 100755 (executable)
@@ -12,7 +12,7 @@ def test_validation2DEF_skinny_triangles():
     start = time.time()
     #### 2D FE skinny triangle mesh
     #meshList=[5,9,15,21,31]
-    meshList=['squareWithSkinnyTriangles_0','squareWithSkinnyTriangles_1','squareWithSkinnyTriangles_2','squareWithSkinnyTriangles_3']#,'squareWithSkinnyTriangles_4'
+    meshList=['squareWithSkinnyTriangles_0','squareWithSkinnyTriangles_1','squareWithSkinnyTriangles_2']#,'squareWithSkinnyTriangles_3','squareWithSkinnyTriangles_4'
     mesh_path='../../../ressources/2DSkinnyTriangles/'
     meshType="Regular_skinny_triangles"
     mesh_name='squareWithSkinnyTriangles'
@@ -78,7 +78,7 @@ def test_validation2DEF_skinny_triangles():
     b=(-a2*b1+a1*b2)/det
     
     print( "FE on 2D skinny triangle mesh : scheme order is ", -a )
-    assert abs(a+1.397)<0.1
+    assert abs(a+1.41)<0.01
 
     # Plot of convergence curves
     plt.close()