SPEED
READ_FACES.f90 File Reference

Go to the source code of this file.

Functions/Subroutines

subroutine read_faces (filename, fac, nodes, n, mpi_id, mpi_com)
 Reads FACES.input.
 

Function/Subroutine Documentation

◆ read_faces()

subroutine read_faces ( character*70  filename,
integer*4, dimension(3,n), intent(inout)  fac,
real*8, dimension(25,n), intent(inout)  nodes,
integer*4  n,
integer*4  mpi_id,
integer*4  mpi_com 
)

Reads FACES.input.

Author
Ilario Mazzieri
Date
September, 2013
Version
1.0
Parameters
[in]filenamefile name
[in]nnumber of DG faces
[in]mpi_idmpi processor identity
[in]mpi_commpi communicator
[out]facmaterial, element, face for a DG face
[out]nodesconstants for the bilienar map from (-1,1)^3 to the current element

Definition at line 30 of file READ_FACES.f90.

31
32 implicit none
33
34 character*70 :: filename
35
36 integer*4 :: j, n, mpi_id, mpi_com, error, unitname
37
38 integer*4, dimension(3,n), intent(inout) :: fac
39
40 real*8, dimension(25,n), intent(inout) :: nodes
41
42 unitname = 400 + mpi_id
43 open(unitname, file=filename)
44 do j = 1,n
45 read(unitname,*) &
46 fac(1,j), fac(2,j), fac(3,j), &
47 nodes(1,j), nodes(2,j), nodes(3,j), &
48 nodes(4,j), nodes(5,j), nodes(6,j), &
49 nodes(7,j), nodes(8,j), nodes(9,j), &
50 nodes(10,j), nodes(11,j), nodes(12,j), &
51 nodes(13,j), nodes(14,j), nodes(15,j), &
52 nodes(16,j), nodes(17,j), nodes(18,j), &
53 nodes(19,j), nodes(20,j), nodes(21,j), &
54 nodes(22,j), nodes(23,j), nodes(24,j), &
55 nodes(25,j)
56
57 enddo
58
59 close(unitname)
60
61
62 return
63