From 2d6908662264890d44f1348e88fdb161648887d2 Mon Sep 17 00:00:00 2001 From: michael Date: Sun, 21 Mar 2021 12:19:10 +0100 Subject: [PATCH] Added matplotlib.use(Agg) to correct memory error --- .../test_validation2DWaveSystemCenteredBrickWall.py | 2 ++ .../test_validation2DWaveSystemCenteredCheckerboard.py | 2 ++ .../test_validation2DWaveSystemCenteredCrossTriangles.py | 2 ++ ...st_validation2DWaveSystemCenteredDeformedQuadrangles.py | 2 ++ ...test_validation2DWaveSystemCenteredDelaunayTriangles.py | 4 +++- ...est_validation2DWaveSystemCenteredFlatCrossTriangles.py | 2 ++ .../test_validation2DWaveSystemCenteredHexagons.py | 2 ++ .../test_validation2DWaveSystemCenteredSquares.py | 2 ++ .../test_validation2DWaveSystemPStagBrickWall.py | 2 ++ .../test_validation2DWaveSystemPStagCheckerboard.py | 2 ++ .../test_validation2DWaveSystemPStagCrossTriangles.py | 4 +++- .../test_validation2DWaveSystemPStagDeformedQuadrangles.py | 2 ++ .../test_validation2DWaveSystemPStagDelaunayTriangles.py | 4 +++- .../test_validation2DWaveSystemPStagFlatCrossTriangles.py | 2 ++ .../test_validation2DWaveSystemPStagHexagons.py | 2 ++ .../test_validation2DWaveSystemPStagSquares.py | 7 ++----- .../test_validation2DWaveSystemStaggeredSquares.py | 2 ++ .../test_validation2DWaveSystemUpwindBrickWall.py | 2 ++ .../test_validation2DWaveSystemUpwindCheckerboard.py | 2 ++ .../test_validation2DWaveSystemUpwindCrossTriangles.py | 2 ++ ...test_validation2DWaveSystemUpwindDeformedQuadrangles.py | 2 ++ .../test_validation2DWaveSystemUpwindDelaunayTriangles.py | 4 +++- .../test_validation2DWaveSystemUpwindFlatCrossTriangles.py | 2 ++ .../test_validation2DWaveSystemUpwindHexagons.py | 2 ++ .../test_validation2DWaveSystemUpwindSquares.py | 2 ++ .../test_validation3DWaveSystemUpwindCubes.py | 2 ++ .../test_validation3DWaveSystemUpwindTetrahedra.py | 2 ++ .../test_validation2DWaveSystemCenteredSquares_DISK.py | 2 ++ .../test_validation2DWaveSystemPStagSquares_DISK.py | 2 ++ .../test_validation2DWaveSystemUpwindSquares_DISK.py | 2 ++ .../test_validation2DWaveSystemCenteredBrickWall_source.py | 2 ++ ...st_validation2DWaveSystemCenteredCheckerboard_source.py | 2 ++ ..._validation2DWaveSystemCenteredCrossTriangles_source.py | 2 ++ ...dation2DWaveSystemCenteredDeformedQuadrangles_source.py | 2 ++ ...lidation2DWaveSystemCenteredDelaunayTriangles_source.py | 2 ++ ...idation2DWaveSystemCenteredFlatCrossTriangles_source.py | 2 ++ .../test_validation2DWaveSystemUpwindHexagons_source.py | 2 ++ .../test_validation2DWaveSystemCenteredSquares_source.py | 2 ++ .../test_validation2DWaveSystemPStagBrickWall_source.py | 2 ++ .../test_validation2DWaveSystemPStagCheckerboard_source.py | 2 ++ ...est_validation2DWaveSystemPStagCrossTriangles_source.py | 2 ++ ...alidation2DWaveSystemPStagDeformedQuadrangles_source.py | 2 ++ ..._validation2DWaveSystemPStagDelaunayTriangles_source.py | 2 ++ ...validation2DWaveSystemPStagFlatCrossTriangles_source.py | 2 ++ .../test_validation2DWaveSystemPStagHexagons_source.py | 2 ++ .../test_validation2DWaveSystemPStagSquares_source.py | 2 ++ .../test_validation2DWaveSystemUpwindBrickWall_source.py | 2 ++ ...test_validation2DWaveSystemUpwindCheckerboard_source.py | 2 ++ ...st_validation2DWaveSystemUpwindCrossTriangles_source.py | 2 ++ ...lidation2DWaveSystemUpwindDeformedQuadrangles_source.py | 2 ++ ...validation2DWaveSystemUpwindDelaunayTriangles_source.py | 2 ++ ...alidation2DWaveSystemUpwindFlatCrossTriangles_source.py | 2 ++ .../test_validation2DWaveSystemUpwindHexagons_source.py | 2 ++ .../test_validation2DWaveSystemUpwindSquares_source.py | 2 ++ 54 files changed, 112 insertions(+), 9 deletions(-) mode change 100644 => 100755 CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemCenteredDeformedQuadrangles/test_validation2DWaveSystemCenteredDeformedQuadrangles.py mode change 100644 => 100755 CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemCenteredHexagons/test_validation2DWaveSystemCenteredHexagons.py mode change 100644 => 100755 CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemPStagDeformedQuadrangles/test_validation2DWaveSystemPStagDeformedQuadrangles.py mode change 100644 => 100755 CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemPStagHexagons/test_validation2DWaveSystemPStagHexagons.py mode change 100644 => 100755 CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemUpwindBrickWall/test_validation2DWaveSystemUpwindBrickWall.py mode change 100644 => 100755 CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemUpwindCheckerboard/test_validation2DWaveSystemUpwindCheckerboard.py mode change 100644 => 100755 CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemUpwindCrossTriangles/test_validation2DWaveSystemUpwindCrossTriangles.py mode change 100644 => 100755 CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemUpwindDeformedQuadrangles/test_validation2DWaveSystemUpwindDeformedQuadrangles.py mode change 100644 => 100755 CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemUpwindDelaunayTriangles/test_validation2DWaveSystemUpwindDelaunayTriangles.py mode change 100644 => 100755 CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemUpwindFlatCrossTriangles/test_validation2DWaveSystemUpwindFlatCrossTriangles.py mode change 100644 => 100755 CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemUpwindHexagons/test_validation2DWaveSystemUpwindHexagons.py mode change 100644 => 100755 CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemUpwindSquares/test_validation2DWaveSystemUpwindSquares.py mode change 100644 => 100755 CDMATH/tests/validation/WaveSystem_stationary/3DWaveSystemUpwindCubes/test_validation3DWaveSystemUpwindCubes.py mode change 100644 => 100755 CDMATH/tests/validation/WaveSystem_stationary/3DWaveSystemUpwindTetrahedra/test_validation3DWaveSystemUpwindTetrahedra.py diff --git a/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemCenteredBrickWall/test_validation2DWaveSystemCenteredBrickWall.py b/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemCenteredBrickWall/test_validation2DWaveSystemCenteredBrickWall.py index 6918473..5f219f2 100755 --- a/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemCenteredBrickWall/test_validation2DWaveSystemCenteredBrickWall.py +++ b/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemCenteredBrickWall/test_validation2DWaveSystemCenteredBrickWall.py @@ -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 diff --git a/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemCenteredCheckerboard/test_validation2DWaveSystemCenteredCheckerboard.py b/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemCenteredCheckerboard/test_validation2DWaveSystemCenteredCheckerboard.py index fbf7a4c..8ba1f98 100755 --- a/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemCenteredCheckerboard/test_validation2DWaveSystemCenteredCheckerboard.py +++ b/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemCenteredCheckerboard/test_validation2DWaveSystemCenteredCheckerboard.py @@ -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 diff --git a/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemCenteredCrossTriangles/test_validation2DWaveSystemCenteredCrossTriangles.py b/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemCenteredCrossTriangles/test_validation2DWaveSystemCenteredCrossTriangles.py index b8826d9..95b8f5b 100755 --- a/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemCenteredCrossTriangles/test_validation2DWaveSystemCenteredCrossTriangles.py +++ b/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemCenteredCrossTriangles/test_validation2DWaveSystemCenteredCrossTriangles.py @@ -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 diff --git a/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemCenteredDeformedQuadrangles/test_validation2DWaveSystemCenteredDeformedQuadrangles.py b/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemCenteredDeformedQuadrangles/test_validation2DWaveSystemCenteredDeformedQuadrangles.py old mode 100644 new mode 100755 index cc73670..df9e68c --- a/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemCenteredDeformedQuadrangles/test_validation2DWaveSystemCenteredDeformedQuadrangles.py +++ b/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemCenteredDeformedQuadrangles/test_validation2DWaveSystemCenteredDeformedQuadrangles.py @@ -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 diff --git a/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemCenteredDelaunayTriangles/test_validation2DWaveSystemCenteredDelaunayTriangles.py b/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemCenteredDelaunayTriangles/test_validation2DWaveSystemCenteredDelaunayTriangles.py index b39bf37..aa198d8 100755 --- a/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemCenteredDelaunayTriangles/test_validation2DWaveSystemCenteredDelaunayTriangles.py +++ b/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemCenteredDelaunayTriangles/test_validation2DWaveSystemCenteredDelaunayTriangles.py @@ -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) diff --git a/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemCenteredFlatCrossTriangles/test_validation2DWaveSystemCenteredFlatCrossTriangles.py b/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemCenteredFlatCrossTriangles/test_validation2DWaveSystemCenteredFlatCrossTriangles.py index e30eb24..32976b1 100755 --- a/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemCenteredFlatCrossTriangles/test_validation2DWaveSystemCenteredFlatCrossTriangles.py +++ b/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemCenteredFlatCrossTriangles/test_validation2DWaveSystemCenteredFlatCrossTriangles.py @@ -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 diff --git a/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemCenteredHexagons/test_validation2DWaveSystemCenteredHexagons.py b/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemCenteredHexagons/test_validation2DWaveSystemCenteredHexagons.py old mode 100644 new mode 100755 index ff91bc3..267dd06 --- a/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemCenteredHexagons/test_validation2DWaveSystemCenteredHexagons.py +++ b/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemCenteredHexagons/test_validation2DWaveSystemCenteredHexagons.py @@ -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 diff --git a/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemCenteredSquares/test_validation2DWaveSystemCenteredSquares.py b/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemCenteredSquares/test_validation2DWaveSystemCenteredSquares.py index a159829..152310b 100755 --- a/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemCenteredSquares/test_validation2DWaveSystemCenteredSquares.py +++ b/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemCenteredSquares/test_validation2DWaveSystemCenteredSquares.py @@ -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 diff --git a/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemPStagBrickWall/test_validation2DWaveSystemPStagBrickWall.py b/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemPStagBrickWall/test_validation2DWaveSystemPStagBrickWall.py index bc23e19..2cd8d8e 100755 --- a/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemPStagBrickWall/test_validation2DWaveSystemPStagBrickWall.py +++ b/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemPStagBrickWall/test_validation2DWaveSystemPStagBrickWall.py @@ -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 diff --git a/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemPStagCheckerboard/test_validation2DWaveSystemPStagCheckerboard.py b/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemPStagCheckerboard/test_validation2DWaveSystemPStagCheckerboard.py index b542e21..b1c9ffd 100755 --- a/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemPStagCheckerboard/test_validation2DWaveSystemPStagCheckerboard.py +++ b/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemPStagCheckerboard/test_validation2DWaveSystemPStagCheckerboard.py @@ -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 diff --git a/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemPStagCrossTriangles/test_validation2DWaveSystemPStagCrossTriangles.py b/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemPStagCrossTriangles/test_validation2DWaveSystemPStagCrossTriangles.py index d0727f9..9f51115 100755 --- a/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemPStagCrossTriangles/test_validation2DWaveSystemPStagCrossTriangles.py +++ b/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemPStagCrossTriangles/test_validation2DWaveSystemPStagCrossTriangles.py @@ -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) diff --git a/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemPStagDeformedQuadrangles/test_validation2DWaveSystemPStagDeformedQuadrangles.py b/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemPStagDeformedQuadrangles/test_validation2DWaveSystemPStagDeformedQuadrangles.py old mode 100644 new mode 100755 index a740ce8..235b7ab --- a/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemPStagDeformedQuadrangles/test_validation2DWaveSystemPStagDeformedQuadrangles.py +++ b/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemPStagDeformedQuadrangles/test_validation2DWaveSystemPStagDeformedQuadrangles.py @@ -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 diff --git a/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemPStagDelaunayTriangles/test_validation2DWaveSystemPStagDelaunayTriangles.py b/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemPStagDelaunayTriangles/test_validation2DWaveSystemPStagDelaunayTriangles.py index d2f73a1..4825a05 100755 --- a/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemPStagDelaunayTriangles/test_validation2DWaveSystemPStagDelaunayTriangles.py +++ b/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemPStagDelaunayTriangles/test_validation2DWaveSystemPStagDelaunayTriangles.py @@ -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) diff --git a/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemPStagFlatCrossTriangles/test_validation2DWaveSystemPStagFlatCrossTriangles.py b/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemPStagFlatCrossTriangles/test_validation2DWaveSystemPStagFlatCrossTriangles.py index 4f5057a..2f580d2 100755 --- a/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemPStagFlatCrossTriangles/test_validation2DWaveSystemPStagFlatCrossTriangles.py +++ b/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemPStagFlatCrossTriangles/test_validation2DWaveSystemPStagFlatCrossTriangles.py @@ -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 diff --git a/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemPStagHexagons/test_validation2DWaveSystemPStagHexagons.py b/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemPStagHexagons/test_validation2DWaveSystemPStagHexagons.py old mode 100644 new mode 100755 index 830f82b..72693c8 --- a/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemPStagHexagons/test_validation2DWaveSystemPStagHexagons.py +++ b/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemPStagHexagons/test_validation2DWaveSystemPStagHexagons.py @@ -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 diff --git a/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemPStagSquares/test_validation2DWaveSystemPStagSquares.py b/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemPStagSquares/test_validation2DWaveSystemPStagSquares.py index 0800eaf..a888160 100755 --- a/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemPStagSquares/test_validation2DWaveSystemPStagSquares.py +++ b/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemPStagSquares/test_validation2DWaveSystemPStagSquares.py @@ -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]) diff --git a/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemStaggeredSquares/test_validation2DWaveSystemStaggeredSquares.py b/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemStaggeredSquares/test_validation2DWaveSystemStaggeredSquares.py index f506b5e..87e51f2 100755 --- a/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemStaggeredSquares/test_validation2DWaveSystemStaggeredSquares.py +++ b/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemStaggeredSquares/test_validation2DWaveSystemStaggeredSquares.py @@ -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 diff --git a/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemUpwindBrickWall/test_validation2DWaveSystemUpwindBrickWall.py b/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemUpwindBrickWall/test_validation2DWaveSystemUpwindBrickWall.py old mode 100644 new mode 100755 index 39ce666..d42256a --- a/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemUpwindBrickWall/test_validation2DWaveSystemUpwindBrickWall.py +++ b/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemUpwindBrickWall/test_validation2DWaveSystemUpwindBrickWall.py @@ -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 diff --git a/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemUpwindCheckerboard/test_validation2DWaveSystemUpwindCheckerboard.py b/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemUpwindCheckerboard/test_validation2DWaveSystemUpwindCheckerboard.py old mode 100644 new mode 100755 index 2fc4525..5a861a6 --- a/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemUpwindCheckerboard/test_validation2DWaveSystemUpwindCheckerboard.py +++ b/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemUpwindCheckerboard/test_validation2DWaveSystemUpwindCheckerboard.py @@ -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 diff --git a/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemUpwindCrossTriangles/test_validation2DWaveSystemUpwindCrossTriangles.py b/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemUpwindCrossTriangles/test_validation2DWaveSystemUpwindCrossTriangles.py old mode 100644 new mode 100755 index b879321..f696852 --- a/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemUpwindCrossTriangles/test_validation2DWaveSystemUpwindCrossTriangles.py +++ b/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemUpwindCrossTriangles/test_validation2DWaveSystemUpwindCrossTriangles.py @@ -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 diff --git a/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemUpwindDeformedQuadrangles/test_validation2DWaveSystemUpwindDeformedQuadrangles.py b/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemUpwindDeformedQuadrangles/test_validation2DWaveSystemUpwindDeformedQuadrangles.py old mode 100644 new mode 100755 index 01265d3..40a1389 --- a/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemUpwindDeformedQuadrangles/test_validation2DWaveSystemUpwindDeformedQuadrangles.py +++ b/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemUpwindDeformedQuadrangles/test_validation2DWaveSystemUpwindDeformedQuadrangles.py @@ -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 diff --git a/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemUpwindDelaunayTriangles/test_validation2DWaveSystemUpwindDelaunayTriangles.py b/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemUpwindDelaunayTriangles/test_validation2DWaveSystemUpwindDelaunayTriangles.py old mode 100644 new mode 100755 index b8df772..90349d9 --- a/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemUpwindDelaunayTriangles/test_validation2DWaveSystemUpwindDelaunayTriangles.py +++ b/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemUpwindDelaunayTriangles/test_validation2DWaveSystemUpwindDelaunayTriangles.py @@ -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) diff --git a/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemUpwindFlatCrossTriangles/test_validation2DWaveSystemUpwindFlatCrossTriangles.py b/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemUpwindFlatCrossTriangles/test_validation2DWaveSystemUpwindFlatCrossTriangles.py old mode 100644 new mode 100755 index a8748af..42e418f --- a/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemUpwindFlatCrossTriangles/test_validation2DWaveSystemUpwindFlatCrossTriangles.py +++ b/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemUpwindFlatCrossTriangles/test_validation2DWaveSystemUpwindFlatCrossTriangles.py @@ -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 diff --git a/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemUpwindHexagons/test_validation2DWaveSystemUpwindHexagons.py b/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemUpwindHexagons/test_validation2DWaveSystemUpwindHexagons.py old mode 100644 new mode 100755 index 969c45e..5f88ac4 --- a/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemUpwindHexagons/test_validation2DWaveSystemUpwindHexagons.py +++ b/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemUpwindHexagons/test_validation2DWaveSystemUpwindHexagons.py @@ -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 diff --git a/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemUpwindSquares/test_validation2DWaveSystemUpwindSquares.py b/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemUpwindSquares/test_validation2DWaveSystemUpwindSquares.py old mode 100644 new mode 100755 index 5d03a4e..0eadd80 --- a/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemUpwindSquares/test_validation2DWaveSystemUpwindSquares.py +++ b/CDMATH/tests/validation/WaveSystem_stationary/2DWaveSystemUpwindSquares/test_validation2DWaveSystemUpwindSquares.py @@ -1,5 +1,7 @@ import cdmath import WaveSystemUpwind +import matplotlib +matplotlib.use("Agg") import matplotlib.pyplot as plt import numpy as np from math import log10, sqrt diff --git a/CDMATH/tests/validation/WaveSystem_stationary/3DWaveSystemUpwindCubes/test_validation3DWaveSystemUpwindCubes.py b/CDMATH/tests/validation/WaveSystem_stationary/3DWaveSystemUpwindCubes/test_validation3DWaveSystemUpwindCubes.py old mode 100644 new mode 100755 index e83bd94..ad0d77a --- a/CDMATH/tests/validation/WaveSystem_stationary/3DWaveSystemUpwindCubes/test_validation3DWaveSystemUpwindCubes.py +++ b/CDMATH/tests/validation/WaveSystem_stationary/3DWaveSystemUpwindCubes/test_validation3DWaveSystemUpwindCubes.py @@ -1,5 +1,7 @@ import cdmath import WaveSystemUpwind +import matplotlib +matplotlib.use("Agg") import matplotlib.pyplot as plt import numpy as np from math import log10, sqrt diff --git a/CDMATH/tests/validation/WaveSystem_stationary/3DWaveSystemUpwindTetrahedra/test_validation3DWaveSystemUpwindTetrahedra.py b/CDMATH/tests/validation/WaveSystem_stationary/3DWaveSystemUpwindTetrahedra/test_validation3DWaveSystemUpwindTetrahedra.py old mode 100644 new mode 100755 index 709549f..de446e9 --- a/CDMATH/tests/validation/WaveSystem_stationary/3DWaveSystemUpwindTetrahedra/test_validation3DWaveSystemUpwindTetrahedra.py +++ b/CDMATH/tests/validation/WaveSystem_stationary/3DWaveSystemUpwindTetrahedra/test_validation3DWaveSystemUpwindTetrahedra.py @@ -1,5 +1,7 @@ import cdmath import WaveSystemUpwind +import matplotlib +matplotlib.use("Agg") import matplotlib.pyplot as plt import numpy as np from math import log10, sqrt diff --git a/CDMATH/tests/validation/WaveSystem_stationary_DISK/2DWaveSystemCenteredSquares_DISK/test_validation2DWaveSystemCenteredSquares_DISK.py b/CDMATH/tests/validation/WaveSystem_stationary_DISK/2DWaveSystemCenteredSquares_DISK/test_validation2DWaveSystemCenteredSquares_DISK.py index e71dff7..47d2359 100755 --- a/CDMATH/tests/validation/WaveSystem_stationary_DISK/2DWaveSystemCenteredSquares_DISK/test_validation2DWaveSystemCenteredSquares_DISK.py +++ b/CDMATH/tests/validation/WaveSystem_stationary_DISK/2DWaveSystemCenteredSquares_DISK/test_validation2DWaveSystemCenteredSquares_DISK.py @@ -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 diff --git a/CDMATH/tests/validation/WaveSystem_stationary_DISK/2DWaveSystemPStagSquares_DISK/test_validation2DWaveSystemPStagSquares_DISK.py b/CDMATH/tests/validation/WaveSystem_stationary_DISK/2DWaveSystemPStagSquares_DISK/test_validation2DWaveSystemPStagSquares_DISK.py index 94434c6..2dc7e1d 100755 --- a/CDMATH/tests/validation/WaveSystem_stationary_DISK/2DWaveSystemPStagSquares_DISK/test_validation2DWaveSystemPStagSquares_DISK.py +++ b/CDMATH/tests/validation/WaveSystem_stationary_DISK/2DWaveSystemPStagSquares_DISK/test_validation2DWaveSystemPStagSquares_DISK.py @@ -1,5 +1,7 @@ import cdmath import WaveSystemPStag +import matplotlib +matplotlib.use("Agg") import matplotlib.pyplot as plt import numpy as np from math import log10, sqrt diff --git a/CDMATH/tests/validation/WaveSystem_stationary_DISK/2DWaveSystemUpwindSquares_DISK/test_validation2DWaveSystemUpwindSquares_DISK.py b/CDMATH/tests/validation/WaveSystem_stationary_DISK/2DWaveSystemUpwindSquares_DISK/test_validation2DWaveSystemUpwindSquares_DISK.py index 116af3a..c0ed7e0 100755 --- a/CDMATH/tests/validation/WaveSystem_stationary_DISK/2DWaveSystemUpwindSquares_DISK/test_validation2DWaveSystemUpwindSquares_DISK.py +++ b/CDMATH/tests/validation/WaveSystem_stationary_DISK/2DWaveSystemUpwindSquares_DISK/test_validation2DWaveSystemUpwindSquares_DISK.py @@ -1,5 +1,7 @@ import cdmath import WaveSystemUpwind +import matplotlib +matplotlib.use("Agg") import matplotlib.pyplot as plt import numpy as np from math import log10, sqrt diff --git a/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemCenteredBrickWall/test_validation2DWaveSystemCenteredBrickWall_source.py b/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemCenteredBrickWall/test_validation2DWaveSystemCenteredBrickWall_source.py index 8ef452f..e8ddd02 100755 --- a/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemCenteredBrickWall/test_validation2DWaveSystemCenteredBrickWall_source.py +++ b/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemCenteredBrickWall/test_validation2DWaveSystemCenteredBrickWall_source.py @@ -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 diff --git a/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemCenteredCheckerboard/test_validation2DWaveSystemCenteredCheckerboard_source.py b/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemCenteredCheckerboard/test_validation2DWaveSystemCenteredCheckerboard_source.py index 212794c..da34ba9 100755 --- a/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemCenteredCheckerboard/test_validation2DWaveSystemCenteredCheckerboard_source.py +++ b/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemCenteredCheckerboard/test_validation2DWaveSystemCenteredCheckerboard_source.py @@ -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 diff --git a/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemCenteredCrossTriangles/test_validation2DWaveSystemCenteredCrossTriangles_source.py b/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemCenteredCrossTriangles/test_validation2DWaveSystemCenteredCrossTriangles_source.py index 7bd0753..abb7a52 100755 --- a/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemCenteredCrossTriangles/test_validation2DWaveSystemCenteredCrossTriangles_source.py +++ b/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemCenteredCrossTriangles/test_validation2DWaveSystemCenteredCrossTriangles_source.py @@ -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 diff --git a/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemCenteredDeformedQuadrangles/test_validation2DWaveSystemCenteredDeformedQuadrangles_source.py b/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemCenteredDeformedQuadrangles/test_validation2DWaveSystemCenteredDeformedQuadrangles_source.py index ae116a0..6fa7e63 100755 --- a/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemCenteredDeformedQuadrangles/test_validation2DWaveSystemCenteredDeformedQuadrangles_source.py +++ b/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemCenteredDeformedQuadrangles/test_validation2DWaveSystemCenteredDeformedQuadrangles_source.py @@ -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 diff --git a/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemCenteredDelaunayTriangles/test_validation2DWaveSystemCenteredDelaunayTriangles_source.py b/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemCenteredDelaunayTriangles/test_validation2DWaveSystemCenteredDelaunayTriangles_source.py index e88d2e4..41c3130 100755 --- a/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemCenteredDelaunayTriangles/test_validation2DWaveSystemCenteredDelaunayTriangles_source.py +++ b/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemCenteredDelaunayTriangles/test_validation2DWaveSystemCenteredDelaunayTriangles_source.py @@ -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 diff --git a/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemCenteredFlatCrossTriangles/test_validation2DWaveSystemCenteredFlatCrossTriangles_source.py b/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemCenteredFlatCrossTriangles/test_validation2DWaveSystemCenteredFlatCrossTriangles_source.py index 67bf58e..7fa26b6 100755 --- a/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemCenteredFlatCrossTriangles/test_validation2DWaveSystemCenteredFlatCrossTriangles_source.py +++ b/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemCenteredFlatCrossTriangles/test_validation2DWaveSystemCenteredFlatCrossTriangles_source.py @@ -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 diff --git a/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemCenteredHexagons/test_validation2DWaveSystemUpwindHexagons_source.py b/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemCenteredHexagons/test_validation2DWaveSystemUpwindHexagons_source.py index d979917..21d1f38 100755 --- a/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemCenteredHexagons/test_validation2DWaveSystemUpwindHexagons_source.py +++ b/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemCenteredHexagons/test_validation2DWaveSystemUpwindHexagons_source.py @@ -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 diff --git a/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemCenteredSquares/test_validation2DWaveSystemCenteredSquares_source.py b/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemCenteredSquares/test_validation2DWaveSystemCenteredSquares_source.py index 2b9e2f2..bbd17b3 100755 --- a/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemCenteredSquares/test_validation2DWaveSystemCenteredSquares_source.py +++ b/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemCenteredSquares/test_validation2DWaveSystemCenteredSquares_source.py @@ -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 diff --git a/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemPStagBrickWall/test_validation2DWaveSystemPStagBrickWall_source.py b/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemPStagBrickWall/test_validation2DWaveSystemPStagBrickWall_source.py index 7348a05..20fd3c1 100755 --- a/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemPStagBrickWall/test_validation2DWaveSystemPStagBrickWall_source.py +++ b/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemPStagBrickWall/test_validation2DWaveSystemPStagBrickWall_source.py @@ -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 diff --git a/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemPStagCheckerboard/test_validation2DWaveSystemPStagCheckerboard_source.py b/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemPStagCheckerboard/test_validation2DWaveSystemPStagCheckerboard_source.py index e9c9ef5..7daf299 100755 --- a/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemPStagCheckerboard/test_validation2DWaveSystemPStagCheckerboard_source.py +++ b/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemPStagCheckerboard/test_validation2DWaveSystemPStagCheckerboard_source.py @@ -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 diff --git a/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemPStagCrossTriangles/test_validation2DWaveSystemPStagCrossTriangles_source.py b/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemPStagCrossTriangles/test_validation2DWaveSystemPStagCrossTriangles_source.py index dec9ef4..b80c5ef 100755 --- a/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemPStagCrossTriangles/test_validation2DWaveSystemPStagCrossTriangles_source.py +++ b/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemPStagCrossTriangles/test_validation2DWaveSystemPStagCrossTriangles_source.py @@ -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 diff --git a/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemPStagDeformedQuadrangles/test_validation2DWaveSystemPStagDeformedQuadrangles_source.py b/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemPStagDeformedQuadrangles/test_validation2DWaveSystemPStagDeformedQuadrangles_source.py index 2217e20..d580ff4 100755 --- a/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemPStagDeformedQuadrangles/test_validation2DWaveSystemPStagDeformedQuadrangles_source.py +++ b/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemPStagDeformedQuadrangles/test_validation2DWaveSystemPStagDeformedQuadrangles_source.py @@ -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 diff --git a/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemPStagDelaunayTriangles/test_validation2DWaveSystemPStagDelaunayTriangles_source.py b/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemPStagDelaunayTriangles/test_validation2DWaveSystemPStagDelaunayTriangles_source.py index 46a85dd..50b8c3e 100755 --- a/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemPStagDelaunayTriangles/test_validation2DWaveSystemPStagDelaunayTriangles_source.py +++ b/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemPStagDelaunayTriangles/test_validation2DWaveSystemPStagDelaunayTriangles_source.py @@ -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 diff --git a/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemPStagFlatCrossTriangles/test_validation2DWaveSystemPStagFlatCrossTriangles_source.py b/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemPStagFlatCrossTriangles/test_validation2DWaveSystemPStagFlatCrossTriangles_source.py index 15a0bd6..b699a78 100755 --- a/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemPStagFlatCrossTriangles/test_validation2DWaveSystemPStagFlatCrossTriangles_source.py +++ b/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemPStagFlatCrossTriangles/test_validation2DWaveSystemPStagFlatCrossTriangles_source.py @@ -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 diff --git a/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemPStagHexagons/test_validation2DWaveSystemPStagHexagons_source.py b/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemPStagHexagons/test_validation2DWaveSystemPStagHexagons_source.py index fe64e94..36a790a 100755 --- a/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemPStagHexagons/test_validation2DWaveSystemPStagHexagons_source.py +++ b/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemPStagHexagons/test_validation2DWaveSystemPStagHexagons_source.py @@ -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 diff --git a/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemPStagSquares/test_validation2DWaveSystemPStagSquares_source.py b/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemPStagSquares/test_validation2DWaveSystemPStagSquares_source.py index 42804ea..1b3a808 100755 --- a/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemPStagSquares/test_validation2DWaveSystemPStagSquares_source.py +++ b/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemPStagSquares/test_validation2DWaveSystemPStagSquares_source.py @@ -1,5 +1,7 @@ import cdmath import WaveSystemPStag +import matplotlib +matplotlib.use("Agg") import matplotlib.pyplot as plt import numpy as np from math import log10, sqrt diff --git a/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemUpwindBrickWall/test_validation2DWaveSystemUpwindBrickWall_source.py b/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemUpwindBrickWall/test_validation2DWaveSystemUpwindBrickWall_source.py index e77a5d2..548dc39 100755 --- a/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemUpwindBrickWall/test_validation2DWaveSystemUpwindBrickWall_source.py +++ b/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemUpwindBrickWall/test_validation2DWaveSystemUpwindBrickWall_source.py @@ -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 diff --git a/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemUpwindCheckerboard/test_validation2DWaveSystemUpwindCheckerboard_source.py b/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemUpwindCheckerboard/test_validation2DWaveSystemUpwindCheckerboard_source.py index d17f847..a8a947a 100755 --- a/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemUpwindCheckerboard/test_validation2DWaveSystemUpwindCheckerboard_source.py +++ b/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemUpwindCheckerboard/test_validation2DWaveSystemUpwindCheckerboard_source.py @@ -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 diff --git a/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemUpwindCrossTriangles/test_validation2DWaveSystemUpwindCrossTriangles_source.py b/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemUpwindCrossTriangles/test_validation2DWaveSystemUpwindCrossTriangles_source.py index 8840c28..a237542 100755 --- a/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemUpwindCrossTriangles/test_validation2DWaveSystemUpwindCrossTriangles_source.py +++ b/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemUpwindCrossTriangles/test_validation2DWaveSystemUpwindCrossTriangles_source.py @@ -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 diff --git a/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemUpwindDeformedQuadrangles/test_validation2DWaveSystemUpwindDeformedQuadrangles_source.py b/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemUpwindDeformedQuadrangles/test_validation2DWaveSystemUpwindDeformedQuadrangles_source.py index e32a5a6..2163b63 100755 --- a/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemUpwindDeformedQuadrangles/test_validation2DWaveSystemUpwindDeformedQuadrangles_source.py +++ b/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemUpwindDeformedQuadrangles/test_validation2DWaveSystemUpwindDeformedQuadrangles_source.py @@ -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 diff --git a/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemUpwindDelaunayTriangles/test_validation2DWaveSystemUpwindDelaunayTriangles_source.py b/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemUpwindDelaunayTriangles/test_validation2DWaveSystemUpwindDelaunayTriangles_source.py index 6e73ef7..9de756a 100755 --- a/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemUpwindDelaunayTriangles/test_validation2DWaveSystemUpwindDelaunayTriangles_source.py +++ b/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemUpwindDelaunayTriangles/test_validation2DWaveSystemUpwindDelaunayTriangles_source.py @@ -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 diff --git a/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemUpwindFlatCrossTriangles/test_validation2DWaveSystemUpwindFlatCrossTriangles_source.py b/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemUpwindFlatCrossTriangles/test_validation2DWaveSystemUpwindFlatCrossTriangles_source.py index 61d104a..73e72ba 100755 --- a/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemUpwindFlatCrossTriangles/test_validation2DWaveSystemUpwindFlatCrossTriangles_source.py +++ b/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemUpwindFlatCrossTriangles/test_validation2DWaveSystemUpwindFlatCrossTriangles_source.py @@ -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 diff --git a/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemUpwindHexagons/test_validation2DWaveSystemUpwindHexagons_source.py b/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemUpwindHexagons/test_validation2DWaveSystemUpwindHexagons_source.py index 0d29fde..dad466a 100755 --- a/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemUpwindHexagons/test_validation2DWaveSystemUpwindHexagons_source.py +++ b/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemUpwindHexagons/test_validation2DWaveSystemUpwindHexagons_source.py @@ -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 diff --git a/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemUpwindSquares/test_validation2DWaveSystemUpwindSquares_source.py b/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemUpwindSquares/test_validation2DWaveSystemUpwindSquares_source.py index cfe6a19..f1d407a 100755 --- a/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemUpwindSquares/test_validation2DWaveSystemUpwindSquares_source.py +++ b/CDMATH/tests/validation/WaveSystem_stationary_source/2DWaveSystemUpwindSquares/test_validation2DWaveSystemUpwindSquares_source.py @@ -1,5 +1,7 @@ import cdmath import WaveSystemUpwind +import matplotlib +matplotlib.use("Agg") import matplotlib.pyplot as plt import numpy as np from math import log10, sqrt -- 2.39.2