From 4021e9b018720c4b154a1b69ce4ecd5f0d6e73e6 Mon Sep 17 00:00:00 2001 From: ndjinga Date: Wed, 21 Oct 2020 10:56:09 +0200 Subject: [PATCH] Corrected error in test 25 (1D finite volume) --- CDMATH/tests/examples/Poisson1DVF/FiniteVolumes1DPoisson.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CDMATH/tests/examples/Poisson1DVF/FiniteVolumes1DPoisson.py b/CDMATH/tests/examples/Poisson1DVF/FiniteVolumes1DPoisson.py index db077ed..8143b5c 100755 --- a/CDMATH/tests/examples/Poisson1DVF/FiniteVolumes1DPoisson.py +++ b/CDMATH/tests/examples/Poisson1DVF/FiniteVolumes1DPoisson.py @@ -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 -- 2.39.2