From 74eefd0b64365a039afe4c95fcd5b572ed536eef Mon Sep 17 00:00:00 2001 From: michael Date: Wed, 7 Oct 2020 10:23:44 +0200 Subject: [PATCH] Corrected error in test --- .../SpectrumLaplace2DEF_SQUARE.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/CDMATH/tests/examples/SpectrumLaplace2DEF/SpectrumLaplace2DEF_SQUARE.py b/CDMATH/tests/examples/SpectrumLaplace2DEF/SpectrumLaplace2DEF_SQUARE.py index f34f58a..3301a1d 100755 --- a/CDMATH/tests/examples/SpectrumLaplace2DEF/SpectrumLaplace2DEF_SQUARE.py +++ b/CDMATH/tests/examples/SpectrumLaplace2DEF/SpectrumLaplace2DEF_SQUARE.py @@ -91,12 +91,12 @@ for i in range(nbCells): N2=my_mesh.getNode(nodeId2) #Formule des gradients voir EF P1 -> calcul déterminants - GradShapeFunc0[0]= (N1.y()-N2.y())/2 - GradShapeFunc0[1]=-(N1.x()-N2.x())/2 - GradShapeFunc1[0]=-(N0.y()-N2.y())/2 - GradShapeFunc1[1]= (N0.x()-N2.x())/2 - GradShapeFunc2[0]= (N0.y()-N1.y())/2 - GradShapeFunc2[1]=-(N0.x()-N1.x())/2 + GradShapeFunc0[0]= (N1.y()-N2.y())*0.5 + GradShapeFunc0[1]=-(N1.x()-N2.x())*0.5 + GradShapeFunc1[0]=-(N0.y()-N2.y())*0.5 + GradShapeFunc1[1]= (N0.x()-N2.x())*0.5 + GradShapeFunc2[0]= (N0.y()-N1.y())*0.5 + GradShapeFunc2[1]=-(N0.x()-N1.x())*0.5 #Création d'un tableau (numéro du noeud, gradient de la fonction de forme GradShapeFuncs={nodeId0 : GradShapeFunc0} -- 2.39.2