From: michael Date: Sun, 21 Mar 2021 10:33:14 +0000 (+0100) Subject: Corrected file name error in postprocessin X-Git-Tag: V9_7_0~32 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0f5b1a5b63efb460c646560e7521fce3ea54e374;p=tools%2Fsolverlab.git Corrected file name error in postprocessin --- diff --git a/CDMATH/tests/validation/Poisson/3DCubeSkinPoissonEF/test_validation3DCubeSkinPoissonEF.py b/CDMATH/tests/validation/Poisson/3DCubeSkinPoissonEF/test_validation3DCubeSkinPoissonEF.py index e3e1831..3fa8f81 100755 --- a/CDMATH/tests/validation/Poisson/3DCubeSkinPoissonEF/test_validation3DCubeSkinPoissonEF.py +++ b/CDMATH/tests/validation/Poisson/3DCubeSkinPoissonEF/test_validation3DCubeSkinPoissonEF.py @@ -30,7 +30,7 @@ def test_validation3DCubeSkinEF(): assert max_sol_num<1.1 error_tab[i]=log10(error_tab[i]) time_tab[i]=log10(time_tab[i]) - with open('./FiniteElementsOnCubeSkinPoisson_PlotOnSortedLines'+meshType+str(mesh_size_tab[i])+'0.csv') as f: + with open('./FiniteElementsOnCubeSkinPoisson_PlotOnSortedLines'+meshType+str(mesh_size_tab[i])+'.csv') as f: lines = f.readlines() y = [float(line.split(",")[0]) for line in lines[1:]] x = [float(line.split(",")[1]) for line in lines[1:]] diff --git a/CDMATH/tests/validation/Poisson/3DSpherePoissonEF/test_validation3DSpherePoissonEF.py b/CDMATH/tests/validation/Poisson/3DSpherePoissonEF/test_validation3DSpherePoissonEF.py old mode 100644 new mode 100755 index 22827ed..fcb9b9e --- a/CDMATH/tests/validation/Poisson/3DSpherePoissonEF/test_validation3DSpherePoissonEF.py +++ b/CDMATH/tests/validation/Poisson/3DSpherePoissonEF/test_validation3DSpherePoissonEF.py @@ -1,4 +1,6 @@ import FiniteElements3DPoissonSphere +import matplotlib +matplotlib.use("Agg") import matplotlib.pyplot as plt import numpy as np from math import log10, sqrt @@ -28,7 +30,7 @@ def test_validation3DSphereEF(): assert max_sol_num<1.1 error_tab[i]=log10(error_tab[i]) time_tab[i]=log10(time_tab[i]) - with open('./FiniteElementsOnSpherePoisson_PlotOnSortedLines'+meshType+str(mesh_size_tab[i])+'0.csv') as f: + with open('./FiniteElementsOnSpherePoisson_PlotOnSortedLines'+meshType+str(mesh_size_tab[i])+'.csv') as f: lines = f.readlines() y = [float(line.split(",")[0]) for line in lines[1:]] x = [float(line.split(",")[1]) for line in lines[1:]] diff --git a/CDMATH/tests/validation/Poisson/3DTorusPoissonEF/test_validation3DTorusPoissonEF.py b/CDMATH/tests/validation/Poisson/3DTorusPoissonEF/test_validation3DTorusPoissonEF.py index 3ed1b87..ee81c8e 100755 --- a/CDMATH/tests/validation/Poisson/3DTorusPoissonEF/test_validation3DTorusPoissonEF.py +++ b/CDMATH/tests/validation/Poisson/3DTorusPoissonEF/test_validation3DTorusPoissonEF.py @@ -30,7 +30,7 @@ def test_validation3DTorusEF(): assert max_sol_num<1.15 error_tab[i]=log10(error_tab[i]) time_tab[i]=log10(time_tab[i]) - with open('./FiniteElementsOnTorusPoisson_PlotOnSortedLines'+meshType+str(mesh_size_tab[i])+'0.csv') as f: + with open('./FiniteElementsOnTorusPoisson_PlotOnSortedLines'+meshType+str(mesh_size_tab[i])+'.csv') as f: lines = f.readlines() y = [float(line.split(",")[0]) for line in lines[1:]] x = [float(line.split(",")[1]) for line in lines[1:]]