SPEED
GET_ELEM_FROM_FACE.f90
Go to the documentation of this file.
1! Copyright (C) 2012 The SPEED FOUNDATION
2! Author: Ilario Mazzieri
3!
4! This file is part of SPEED.
5!
6! SPEED is free software; you can redistribute it and/or modify it
7! under the terms of the GNU Affero General Public License as
8! published by the Free Software Foundation, either version 3 of the
9! License, or (at your option) any later version.
10!
11! SPEED is distributed in the hope that it will be useful, but
12! WITHOUT ANY WARRANTY; without even the implied warranty of
13! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14! Affero General Public License for more details.
15!
16! You should have received a copy of the GNU Affero General Public License
17! along with SPEED. If not, see <http://www.gnu.org/licenses/>.
18
29
30 subroutine get_elem_from_face(nb_nz_el,list_el,v1,v2,v3,ie)
31
32
33 implicit none
34
35 integer*4 :: nb_nz_el,v1,v2,v3,ie
36 integer*4 :: i,j,k
37
38 integer*4, dimension(0:nb_nz_el) :: list_el
39
40 ie = 0
41
42 do i = list_el(v1 -1),list_el(v1) -1
43 do j = list_el(v2 -1),list_el(v2) -1
44 do k = list_el(v3 -1),list_el(v3) -1
45
46 if ((list_el(i).eq.list_el(j)).and.(list_el(j).eq.list_el(k))) ie = list_el(i)
47
48 enddo
49 enddo
50 enddo
51
52 return
53
54 end subroutine get_elem_from_face
55
subroutine get_elem_from_face(nb_nz_el, list_el, v1, v2, v3, ie)
Find element index from verteces number.