]> SALOME platform Git repositories - tools/solverlab.git/commitdiff
Salome HOME
Added matplotlib.use(Agg) to correct memory error
authormichael <michael@localhost.localdomain>
Sun, 21 Mar 2021 11:19:10 +0000 (12:19 +0100)
committermichael <michael@localhost.localdomain>
Sun, 21 Mar 2021 11:19:10 +0000 (12:19 +0100)
54 files changed:
CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemCenteredBrickWall/test_validation2DWaveSystemCenteredBrickWall.py
CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemCenteredCheckerboard/test_validation2DWaveSystemCenteredCheckerboard.py
CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemCenteredCrossTriangles/test_validation2DWaveSystemCenteredCrossTriangles.py
CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemCenteredDeformedQuadrangles/test_validation2DWaveSystemCenteredDeformedQuadrangles.py [changed mode: 0644->0755]
CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemCenteredDelaunayTriangles/test_validation2DWaveSystemCenteredDelaunayTriangles.py
CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemCenteredFlatCrossTriangles/test_validation2DWaveSystemCenteredFlatCrossTriangles.py
CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemCenteredHexagons/test_validation2DWaveSystemCenteredHexagons.py [changed mode: 0644->0755]
CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemCenteredSquares/test_validation2DWaveSystemCenteredSquares.py
CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemPStagBrickWall/test_validation2DWaveSystemPStagBrickWall.py
CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemPStagCheckerboard/test_validation2DWaveSystemPStagCheckerboard.py
CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemPStagCrossTriangles/test_validation2DWaveSystemPStagCrossTriangles.py
CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemPStagDeformedQuadrangles/test_validation2DWaveSystemPStagDeformedQuadrangles.py [changed mode: 0644->0755]
CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemPStagDelaunayTriangles/test_validation2DWaveSystemPStagDelaunayTriangles.py
CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemPStagFlatCrossTriangles/test_validation2DWaveSystemPStagFlatCrossTriangles.py
CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemPStagHexagons/test_validation2DWaveSystemPStagHexagons.py [changed mode: 0644->0755]
CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemPStagSquares/test_validation2DWaveSystemPStagSquares.py
CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemStaggeredSquares/test_validation2DWaveSystemStaggeredSquares.py
CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemUpwindBrickWall/test_validation2DWaveSystemUpwindBrickWall.py [changed mode: 0644->0755]
CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemUpwindCheckerboard/test_validation2DWaveSystemUpwindCheckerboard.py [changed mode: 0644->0755]
CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemUpwindCrossTriangles/test_validation2DWaveSystemUpwindCrossTriangles.py [changed mode: 0644->0755]
CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemUpwindDeformedQuadrangles/test_validation2DWaveSystemUpwindDeformedQuadrangles.py [changed mode: 0644->0755]
CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemUpwindDelaunayTriangles/test_validation2DWaveSystemUpwindDelaunayTriangles.py [changed mode: 0644->0755]
CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemUpwindFlatCrossTriangles/test_validation2DWaveSystemUpwindFlatCrossTriangles.py [changed mode: 0644->0755]
CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemUpwindHexagons/test_validation2DWaveSystemUpwindHexagons.py [changed mode: 0644->0755]
CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemUpwindSquares/test_validation2DWaveSystemUpwindSquares.py [changed mode: 0644->0755]
CDMATH/tests/validation/WaveSystem_stationary/3DWaveSystemUpwindCubes/test_validation3DWaveSystemUpwindCubes.py [changed mode: 0644->0755]
CDMATH/tests/validation/WaveSystem_stationary/3DWaveSystemUpwindTetrahedra/test_validation3DWaveSystemUpwindTetrahedra.py [changed mode: 0644->0755]
CDMATH/tests/validation/WaveSystem_stationary_DISK/2DWaveSystemCenteredSquares_DISK/test_validation2DWaveSystemCenteredSquares_DISK.py
CDMATH/tests/validation/WaveSystem_stationary_DISK/2DWaveSystemPStagSquares_DISK/test_validation2DWaveSystemPStagSquares_DISK.py
CDMATH/tests/validation/WaveSystem_stationary_DISK/2DWaveSystemUpwindSquares_DISK/test_validation2DWaveSystemUpwindSquares_DISK.py
CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemCenteredBrickWall/test_validation2DWaveSystemCenteredBrickWall_source.py
CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemCenteredCheckerboard/test_validation2DWaveSystemCenteredCheckerboard_source.py
CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemCenteredCrossTriangles/test_validation2DWaveSystemCenteredCrossTriangles_source.py
CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemCenteredDeformedQuadrangles/test_validation2DWaveSystemCenteredDeformedQuadrangles_source.py
CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemCenteredDelaunayTriangles/test_validation2DWaveSystemCenteredDelaunayTriangles_source.py
CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemCenteredFlatCrossTriangles/test_validation2DWaveSystemCenteredFlatCrossTriangles_source.py
CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemCenteredHexagons/test_validation2DWaveSystemUpwindHexagons_source.py
CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemCenteredSquares/test_validation2DWaveSystemCenteredSquares_source.py
CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemPStagBrickWall/test_validation2DWaveSystemPStagBrickWall_source.py
CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemPStagCheckerboard/test_validation2DWaveSystemPStagCheckerboard_source.py
CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemPStagCrossTriangles/test_validation2DWaveSystemPStagCrossTriangles_source.py
CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemPStagDeformedQuadrangles/test_validation2DWaveSystemPStagDeformedQuadrangles_source.py
CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemPStagDelaunayTriangles/test_validation2DWaveSystemPStagDelaunayTriangles_source.py
CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemPStagFlatCrossTriangles/test_validation2DWaveSystemPStagFlatCrossTriangles_source.py
CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemPStagHexagons/test_validation2DWaveSystemPStagHexagons_source.py
CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemPStagSquares/test_validation2DWaveSystemPStagSquares_source.py
CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemUpwindBrickWall/test_validation2DWaveSystemUpwindBrickWall_source.py
CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemUpwindCheckerboard/test_validation2DWaveSystemUpwindCheckerboard_source.py
CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemUpwindCrossTriangles/test_validation2DWaveSystemUpwindCrossTriangles_source.py
CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemUpwindDeformedQuadrangles/test_validation2DWaveSystemUpwindDeformedQuadrangles_source.py
CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemUpwindDelaunayTriangles/test_validation2DWaveSystemUpwindDelaunayTriangles_source.py
CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemUpwindFlatCrossTriangles/test_validation2DWaveSystemUpwindFlatCrossTriangles_source.py
CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemUpwindHexagons/test_validation2DWaveSystemUpwindHexagons_source.py
CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemUpwindSquares/test_validation2DWaveSystemUpwindSquares_source.py

index b39bf37d51a2f2cbd95f967141257628d67fa3b0..aa198d80119b5b4915c7a00ede08f472e244bfc5 100755 (executable)
@@ -1,4 +1,6 @@
 import WaveSystemCentered
+import matplotlib
+matplotlib.use("Agg")
 import matplotlib.pyplot as plt
 import numpy as np
 from math import log10, sqrt
@@ -9,7 +11,7 @@ import time, json
 def test_validation2DWaveSystemCentered_triangles(scaling):
     start = time.time()
     #### 2D Delaunay triangles meshes
-    meshList=['squareWithTriangles_1','squareWithTriangles_2','squareWithTriangles_3','squareWithTriangles_4']
+    meshList=['squareWithTriangles_1','squareWithTriangles_2','squareWithTriangles_3']#,'squareWithTriangles_4'
     meshType="Unstructured_Delaunay_triangles"
     testColor="Green"
     nbMeshes=len(meshList)
index a1598293dc27174a09591d8362a5e85cd04a7d76..152310b28a02629efd66a44680862d93a9c374f9 100755 (executable)
@@ -1,5 +1,7 @@
 import cdmath
 import WaveSystemCentered
+import matplotlib
+matplotlib.use("Agg")
 import matplotlib.pyplot as plt
 import numpy as np
 from math import log10, sqrt
index d0727f98f296b125880025de4f49f6eaa80ab760..9f511154d7e38a66e07c54324436305be735abf1 100755 (executable)
@@ -1,4 +1,6 @@
 import WaveSystemPStag
+import matplotlib
+matplotlib.use("Agg")
 import matplotlib.pyplot as plt
 import numpy as np
 from math import log10, sqrt
@@ -9,7 +11,7 @@ import time, json
 def test_validation2DWaveSystemPStagCrossTriangles(scaling):
     start = time.time()
     #### 2D cross triangle meshes
-    meshList=['squareWithCrossTriangles_0','squareWithCrossTriangles_1','squareWithCrossTriangles_2','squareWithCrossTriangles_3']#,'squareWithCrossTriangles_4'
+    meshList=['squareWithCrossTriangles_0','squareWithCrossTriangles_1','squareWithCrossTriangles_2']#,'squareWithCrossTriangles_3','squareWithCrossTriangles_4'
     meshType="Unstructured_cross_triangles"
     testColor="Green"
     nbMeshes=len(meshList)
index d2f73a195a47e4120c2771f1c91e1aace6b447e8..4825a05e3d546a3a45def7c6e639c948515c1b79 100755 (executable)
@@ -1,4 +1,6 @@
 import WaveSystemPStag
+import matplotlib
+matplotlib.use("Agg")
 import matplotlib.pyplot as plt
 import numpy as np
 from math import log10, sqrt
@@ -9,7 +11,7 @@ import time, json
 def test_validation2DWaveSystemPStagTriangles(scaling):
     start = time.time()
     #### 2D Delaunay triangles meshes
-    meshList=['squareWithTriangles_1','squareWithTriangles_2','squareWithTriangles_3','squareWithTriangles_4']
+    meshList=['squareWithTriangles_1','squareWithTriangles_2','squareWithTriangles_3']
     meshType="Unstructured_Delaunay_triangles"
     testColor="Green"
     nbMeshes=len(meshList)
index 0800eaf614f10ab95cdf6909c0eda3e1cbb78cc3..a8881604bace2a63af35bdae9de1a635d6e30b78 100755 (executable)
@@ -1,5 +1,6 @@
-import cdmath
 import WaveSystemPStag
+import matplotlib
+matplotlib.use("Agg")
 import matplotlib.pyplot as plt
 import numpy as np
 from math import log10, sqrt
@@ -10,7 +11,6 @@ import time, json
 def test_validation2DWaveSystemPStag_squares(scaling):
     start = time.time()
     #### 2D square mesh
-    #meshList=[7,15,31,51]#,81,101
     meshList=['squareWithSquares_1','squareWithSquares_2','squareWithSquares_3','squareWithSquares_4']#,'squareWithSquares_5'
     mesh_path='../../../ressources/2DCartesien/'
     meshType="Regular squares"
@@ -36,9 +36,6 @@ def test_validation2DWaveSystemPStag_squares(scaling):
     cfl=0.5
     # Storing of numerical errors, mesh sizes and diagonal values
     for filename in meshList:
-    #for nx in meshList:
-        #my_mesh=cdmath.Mesh(0,1,nx,0,1,nx)
-        #error_p_tab[i], error_u_tab[i], mesh_size_tab[i], t_final[i], ndt_final[i], max_vel[i], diag_data_press[i], diag_data_vel[i], time_tab[i], cond_number[i] =WaveSystemPStag.solve(my_mesh,"square"+str(nx)+'x'+str(nx),resolution,scaling,meshType,testColor,cfl,"Periodic",)
         error_p_tab[i], error_u_tab[i], mesh_size_tab[i], t_final[i], ndt_final[i], max_vel[i], diag_data_press[i], diag_data_vel[i], time_tab[i], cond_number[i] =WaveSystemPStag.solve_file(mesh_path+filename, mesh_name, resolution,scaling,meshType,testColor,cfl,"Periodic")
         assert max_vel[i]>0.5 and max_vel[i]<1.1
         error_p_tab[i]=log10(error_p_tab[i])
index f506b5e3e6c7c90a5415ff38ba120a72ac889586..87e51f26c4cfd29a5bf1b26a66afb2b9750dc2e4 100755 (executable)
@@ -1,5 +1,7 @@
 import cdmath
 import WaveSystemStaggered
+import matplotlib
+matplotlib.use("Agg")
 import matplotlib.pyplot as plt
 import numpy as np
 from math import log10, sqrt
old mode 100644 (file)
new mode 100755 (executable)
index b8df772..90349d9
@@ -1,4 +1,6 @@
 import WaveSystemUpwind
+import matplotlib
+matplotlib.use("Agg")
 import matplotlib.pyplot as plt
 import numpy as np
 from math import log10, sqrt
@@ -8,7 +10,7 @@ import time, json
 def test_validation2DWaveSystemUpwindDelaunayTriangles(bctype,scaling):
     start = time.time()
     #### 2D Delaunay triangles mesh
-    meshList=['squareWithTriangles_1','squareWithTriangles_2','squareWithTriangles_3','squareWithTriangles_4','squareWithTriangles_5']
+    meshList=['squareWithTriangles_1','squareWithTriangles_2','squareWithTriangles_3']#,'squareWithTriangles_4','squareWithTriangles_5'
     meshType="Unstructured_Delaunay_triangles"
     testColor="Green"
     nbMeshes=len(meshList)