SPEED
READ_FACES.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 read_faces(filename, fac, nodes, n, mpi_id, mpi_com)
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
64 end subroutine read_faces
subroutine read_faces(filename, fac, nodes, n, mpi_id, mpi_com)
Reads FACES.input.