]> SALOME platform Git repositories - tools/solverlab.git/commitdiff
Salome HOME
Corrected execution of tests
authorndjinga <michael.ndjinga@cea.fr>
Mon, 21 Sep 2020 12:28:14 +0000 (14:28 +0200)
committerndjinga <michael.ndjinga@cea.fr>
Mon, 21 Sep 2020 12:28:14 +0000 (14:28 +0200)
CDMATH/tests/examples/Poisson1DEF/FiniteElements1DPoisson.py
CDMATH/tests/examples/Poisson1DVF/FiniteVolumes1DPoisson.py
CDMATH/tests/examples/Poisson3DVF/FiniteVolumes3DPoisson_CUBE.py [changed mode: 0644->0755]
CDMATH/tests/ressources/CMakeLists.txt

index d0cdae67030b47aa3ae66d7db171423945144642..ff8baf5fd405ba1b06466c277b1ab708ddc4074b 100755 (executable)
@@ -139,7 +139,7 @@ plt.legend()
 plt.xlabel('Position')
 plt.ylabel('Value')
 plt.title('1D finite elements \n for Laplace operator')
-plt.savefig('FiniteElements1DPoisson_ResultField_'+str(nbNodes) + '_nodes'+'.png')
+plt.savefig("FiniteElements1DPoisson_ResultField_"+str(nbNodes) + '_nodes'+".png")
 
 print("Numerical solution of the 1D Poisson equation using finite elements done")
 
index 8143b5cd433affc8e701ad3ca7c3c8656ac254ea..db077ed92445548622ac5ca72965d38863671fe8 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.addValue(i,k,-coeff) # terme extradiagonal
+                       Rigidite.setValue(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
old mode 100644 (file)
new mode 100755 (executable)
index 14f6f8c..41c3ab0
@@ -85,7 +85,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())
                Rigidite.addValue(i,i,coeff) # terme diagonal
index f9387fcd0f146f03d3396965bdac714e08053fe1..acf794c07b08a85d8a060a88f5aafd8a2708cceb 100755 (executable)
@@ -2,7 +2,7 @@ SET(MESH_MED2
   ../ressources/
   )
 
-file(COPY ${MESH_MED2} DESTINATION ${CMAKE_BINARY_DIR}/tests/ressources)
+file(COPY ${MESH_MED2} DESTINATION ${CMAKE_BINARY_DIR}/CDMATH/tests/ressources)
 
 install(DIRECTORY ${MESH_MED2} DESTINATION share/meshes)