Salome HOME
Simplified use of variables for MATPLOTLIB, PyQt and paraview variables
[tools/solverlab.git] / CDMATH / tests / examples / Poisson2DVF_DISK / FiniteVolumes2DPoisson_DISK.py
index e003ed6e6ad0da033bb0996342d4b38b53ff456a..9a923cdb342e2e2ebed4546fc58b5c653165801a 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