From: michael Date: Wed, 7 Oct 2020 08:23:44 +0000 (+0200) Subject: Corrected error in test X-Git-Tag: V9_6_0~15 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=74eefd0b64365a039afe4c95fcd5b572ed536eef;p=tools%2Fsolverlab.git Corrected error in test --- 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}