]> SALOME platform Git repositories - tools/solverlab.git/commitdiff
Salome HOME
Corrected error in test 25 (1D finite volume)
authorndjinga <michael.ndjinga@cea.fr>
Wed, 21 Oct 2020 08:56:09 +0000 (10:56 +0200)
committerndjinga <michael.ndjinga@cea.fr>
Wed, 21 Oct 2020 08:56:09 +0000 (10:56 +0200)
CDMATH/tests/examples/Poisson1DVF/FiniteVolumes1DPoisson.py

index db077ed92445548622ac5ca72965d38863671fe8..8143b5cd433affc8e701ad3ca7c3c8656ac254ea 100755 (executable)
@@ -69,7 +69,7 @@ for i in range(nbCells):
                        Ck=my_mesh.getCell(k)
                        distance=Ci.getBarryCenter().distance(Ck.getBarryCenter())
                        coeff=Fj.getMeasure()/Ci.getMeasure()/distance
-                       Rigidite.setValue(i,k,-coeff) # terme extradiagonal
+                       Rigidite.addValue(i,k,-coeff) # terme extradiagonal
                else:
                        coeff=Fj.getMeasure()/Ci.getMeasure()/Ci.getBarryCenter().distance(Fj.getBarryCenter())
                        #For the particular case where the mesh boundary does not coincide with the domain boundary