SPEED
READ_FILEPG.f90 File Reference

Go to the source code of this file.

Functions/Subroutines

subroutine read_filepg (filec, num_nodes, x, y, z)
 Reads LS.input file.
 

Function/Subroutine Documentation

◆ read_filepg()

subroutine read_filepg ( character*70  filec,
integer*4  num_nodes,
real*8, dimension(num_nodes)  x,
real*8, dimension(num_nodes)  y,
real*8, dimension(num_nodes)  z 
)

Reads LS.input file.

Author
Ilario Mazzieri
Date
September, 2013
Version
1.0
Parameters
[in]filecfile name
[in]num_nodesnumber of monitored nodes
[out]xx-coord. of the monitor
[out]yy-coord. of the monitor
[out]zz-coord. of the monitor

Definition at line 29 of file READ_FILEPG.f90.

30
31 implicit none
32
33 character*70 :: filec
34 character*100000 :: input_line
35
36 integer*4 :: i,trash, num_nodes
37 integer*4 :: ileft,iright, status
38
39 real*8 :: length_edge1,length_edge2,length_edge3
40
41 real*8, dimension(num_nodes) :: x,y,z
42
43
44 open(20,file=filec)
45 read(20,'(A)',iostat = status) input_line
46 ileft = 1
47 iright = len(input_line)
48 read(input_line(ileft:iright),*)num_nodes
49
50 do i = 1,num_nodes
51 read(20,'(A)',iostat = status) input_line
52 if (status.ne.0) exit
53 ileft = 1
54 iright = len(input_line)
55 read(input_line(ileft:iright),*)trash,x(i),y(i),z(i)
56 enddo
57
58 close(20)
59
60 return
61

Referenced by find_monitor_position().

Here is the caller graph for this function: