SPEED
GET_FACE_DG.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
31
32
33 subroutine get_face_dg(faces, nel_dg_glo, ik, ind, face_found)
34
35
36 implicit none
37
38 integer*4 :: nel_dg_glo, ind, ik, face_found, i
39
40 integer*4, dimension(3,nel_dg_glo) :: faces
41
42 face_found = 0
43 do i = 1, nel_dg_glo
44
45 if(faces(2,i) .eq. ik .and. faces(3,i) .eq. ind ) then
46 face_found = i
47 return
48 endif
49 enddo
50
51
52
53 end subroutine get_face_dg
subroutine get_face_dg(faces, nel_dg_glo, ik, ind, face_found)
Find the face (quad) of a DG element (hex)