From f959a3654a86cf7e344b7633b5c971587a053818 Mon Sep 17 00:00:00 2001 From: michael Date: Mon, 5 Oct 2020 19:01:34 +0200 Subject: [PATCH] Corrected error in test 42 ExamplePoisson_2DEF_SQUARE --- CDMATH/tests/examples/Poisson2DEF/CMakeLists.txt | 2 +- .../examples/Poisson2DEF/FiniteElements2DPoisson_SQUARE.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CDMATH/tests/examples/Poisson2DEF/CMakeLists.txt b/CDMATH/tests/examples/Poisson2DEF/CMakeLists.txt index 263d42d..47bd375 100755 --- a/CDMATH/tests/examples/Poisson2DEF/CMakeLists.txt +++ b/CDMATH/tests/examples/Poisson2DEF/CMakeLists.txt @@ -3,7 +3,7 @@ SET(MESH_MED ../../ressources/squareWithTriangles.med ) -file(COPY ${MESH_MED} DESTINATION ${CMAKE_BINARY_DIR}/tests/examples/Poisson2DEF) +file(COPY ${MESH_MED} DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) install(FILES ${MESH_MED} DESTINATION share/examples/Poisson2DEF) if (CDMATH_WITH_PYTHON AND CDMATH_WITH_PETSC AND CDMATH_WITH_POSTPRO) diff --git a/CDMATH/tests/examples/Poisson2DEF/FiniteElements2DPoisson_SQUARE.py b/CDMATH/tests/examples/Poisson2DEF/FiniteElements2DPoisson_SQUARE.py index 2772ef1..a7529d9 100644 --- a/CDMATH/tests/examples/Poisson2DEF/FiniteElements2DPoisson_SQUARE.py +++ b/CDMATH/tests/examples/Poisson2DEF/FiniteElements2DPoisson_SQUARE.py @@ -109,7 +109,7 @@ for i in range(nbCells): #Ajout de la contribution de la cellule triangulaire i au second membre du noeud j RHS[j_int]=Ci.getMeasure()/3*my_RHSfield[j]+RHS[j_int] # intégrale dans le triangle du produit f x fonction de base #Contribution de la cellule triangulaire i à la ligne j_int du système linéaire - for k in [nodeId0,nodeId1,nodeId2] : + for k in [nodeId0,nodeId1,nodeId2] : if boundaryNodes.count(k)==0 : #seuls les noeuds intérieurs contribuent à la matrice du système linéaire k_int=interiorNodes.index(k)#indice du noeud k en tant que noeud intérieur Rigidite.addValue(j_int,k_int,GradShapeFuncs[j]*GradShapeFuncs[k]/Ci.getMeasure()) -- 2.39.2