From e22a6c640cb5d7f9d298f88e5e438e9c4bfc1b9f Mon Sep 17 00:00:00 2001 From: michael Date: Mon, 5 Oct 2020 19:05:37 +0200 Subject: [PATCH] Corrected error in test 43 ExamplePoisson_2DEF_SQUARE (indentation and mesh location) --- CDMATH/tests/examples/Poisson2DEF_DISK/CMakeLists.txt | 2 +- .../examples/Poisson2DEF_DISK/FiniteElements2DPoisson_DISK.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CDMATH/tests/examples/Poisson2DEF_DISK/CMakeLists.txt b/CDMATH/tests/examples/Poisson2DEF_DISK/CMakeLists.txt index f2115b6..cfaa27b 100755 --- a/CDMATH/tests/examples/Poisson2DEF_DISK/CMakeLists.txt +++ b/CDMATH/tests/examples/Poisson2DEF_DISK/CMakeLists.txt @@ -3,7 +3,7 @@ SET(MESH_MED ../../ressources/diskWithTriangles.med ) -file(COPY ${MESH_MED} DESTINATION ${CMAKE_BINARY_DIR}/tests/examples/Poisson2DEF_DISK) +file(COPY ${MESH_MED} DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) install(FILES ${MESH_MED} DESTINATION share/examples/Poisson2DEF_DISK) if (CDMATH_WITH_PYTHON AND CDMATH_WITH_PETSC AND CDMATH_WITH_POSTPRO) diff --git a/CDMATH/tests/examples/Poisson2DEF_DISK/FiniteElements2DPoisson_DISK.py b/CDMATH/tests/examples/Poisson2DEF_DISK/FiniteElements2DPoisson_DISK.py index 6b8d6d0..d3ec673 100755 --- a/CDMATH/tests/examples/Poisson2DEF_DISK/FiniteElements2DPoisson_DISK.py +++ b/CDMATH/tests/examples/Poisson2DEF_DISK/FiniteElements2DPoisson_DISK.py @@ -110,7 +110,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