SPEED
GET_FACE_DG.f90 File Reference

Go to the source code of this file.

Functions/Subroutines

subroutine get_face_dg (faces, nel_dg_glo, ik, ind, face_found)
 Find the face (quad) of a DG element (hex)
 

Function/Subroutine Documentation

◆ get_face_dg()

subroutine get_face_dg ( integer*4, dimension(3,nel_dg_glo)  faces,
integer*4  nel_dg_glo,
integer*4  ik,
integer*4  ind,
integer*4  face_found 
)

Find the face (quad) of a DG element (hex)

Author
Ilario Mazzieri
Date
September, 2013
Version
1.0
Parameters
[in]facesfaces(1,i) = block id of the element faces(2,i) = element id faces(3,i) = face id
[in]nel_dg_glonumber of dg elements
[in]ikelement id to find
[in]indface id to find
[out]face_found0 if not found, number of the face (from 1 to 6) if found

Definition at line 33 of file GET_FACE_DG.f90.

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

Referenced by make_dg_interface().

Here is the caller graph for this function: