]> SALOME platform Git repositories - tools/solverlab.git/commitdiff
Salome HOME
Corrected error in test setValue->addValue
authormichael <michael@localhost.localdomain>
Mon, 5 Oct 2020 16:54:04 +0000 (18:54 +0200)
committermichael <michael@localhost.localdomain>
Mon, 5 Oct 2020 16:54:04 +0000 (18:54 +0200)
CDMATH/tests/examples/Poisson2DVF_DISK_StiffBC/FiniteVolumes2DPoisson_DISK_StiffBC.py

index b3b09aadb95ae236a63052296ae2582313db93a1..36e48e068592c5348d30a4a7c35019ee313abdcf 100755 (executable)
@@ -78,7 +78,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