SPEED
READ_FILEVS.f90 File Reference

Go to the source code of this file.

Functions/Subroutines

subroutine read_filevs (filec, num_tria, velocity, sediments)
 Reads vs30 and thickness from VS_RS.out.
 

Function/Subroutine Documentation

◆ read_filevs()

subroutine read_filevs ( character*70  filec,
integer*4  num_tria,
real*8, dimension(num_tria)  velocity,
real*8, dimension(num_tria)  sediments 
)

Reads vs30 and thickness from VS_RS.out.

Author
Ilario Mazzieri
Date
September, 2015
Version
1.0
Parameters
[in]filecfile name for the mesh
[in]num_trianumber of triangular elements
[out]velocityvs30
[out]thicknessthickness of soft sediments

Definition at line 28 of file READ_FILEVS.f90.

29
30 implicit none
31
32 integer*4 :: num_tria
33 integer*4 :: i
34 integer*4 :: trash
35
36 character*70 :: filec
37 real*8, dimension(num_tria) :: velocity, sediments
38
39 open(20,file=filec)
40
41 do i = 1,num_tria
42 read(20,*) trash, velocity(i), sediments(i)
43 enddo
44
45 close(20)
46
47 return
48

Referenced by make_nothonoring().

Here is the caller graph for this function: