|
From: | Yves Renard |
Subject: | Re: [Getfem-users] visitor for points of a mesh region |
Date: | Tue, 10 Jul 2012 14:02:56 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 |
Dear Tsai, Your code I return the dofs which corresponding shape function have a nonzero mean on the region (but be carefull, some shape functions of the P2 element in 2D have a zero mean). If you need the dof on a region, there exist a method of the mesh_fem object with return them. If you whant the points indices (with the numeration correpsonding to the mesh, not to a mesh_fem) the only mean, I think, is to iterate on the elements and to use the methods ind_point_of_convex(..) and ind_points_of_face_of_convex of the mesh object. Your code III seems to me correct. What kind of problem do you have ? Yves. Le 10/07/2012 03:19, CC Tsai a écrit :
-- Yves Renard (address@hidden) tel : (33) 04.72.43.87.08 Pole de Mathematiques, INSA-Lyon fax : (33) 04.72.43.85.29 20, rue Albert Einstein 69621 Villeurbanne Cedex, FRANCE http://math.univ-lyon1.fr/~renard --------- |
[Prev in Thread] | Current Thread | [Next in Thread] |