SPEED
READ_FILEMESH_LOC.f90 File Reference

Go to the source code of this file.

Functions/Subroutines

subroutine read_filemesh_loc (file_grid, nn_loc, xx_loc, yy_loc, zz
 Reads the local mesh.
 

Function/Subroutine Documentation

◆ read_filemesh_loc()

subroutine read_filemesh_loc ( character*70  file_grid,
integer*4  nn_loc,
real*8, dimension(nn_loc), intent(inout)  xx_loc,
real*8, dimension(nn_loc), intent(inout)  yy_loc,
real*8  zz 
)

Reads the local mesh.

Author
Ilario Mazzieri
Date
September, 2013
Version
1.0
Parameters
[in]file_gridfile name
[in]nn_locnumber of local nodes
[in]loc_n_numlocal node numbering
[out]xx_locx-coordinate of local nodes
[out]yy_locy-coordinate of local nodes
[out]zz_locz-coordinate of local nodes

Definition at line 30 of file READ_FILEMESH_LOC.f90.

31 loc_n_num)
32
33 implicit none
34
35 character*70 :: file_grid
36 character*110 :: input_line
37
38 integer*4 :: nn_loc
39 integer*4 :: inode
40 integer*4 :: nnode,nelem,i,ic,status
41
42 integer*4, dimension(nn_loc) :: loc_n_num
43
44 real*8 :: xx,yy,zz
45 real*8, dimension(nn_loc), intent(inout) :: xx_loc(nn_loc), yy_loc(nn_loc), zz_loc(nn_loc)
46
47 inode = 0
48 status = 0
49
50 open(23,file=file_grid)
51
52 do
53 read(23,'(A)') input_line
54 if (input_line(1:1) .ne. '#') exit
55 enddo
56
57 read(input_line,*) nnode, nelem
58
59 do i = 1,nnode
60 read(23,*) inode, xx, yy, zz
61 if (inode.ne.i) then
62 status = 1
63 endif
64
65 call get_indloc_from_indglo(loc_n_num, nn_loc, inode, ic)
66
67
68 if (ic .ne. 0) then
69 xx_loc(ic) = xx
70 yy_loc(ic) = yy
71 zz_loc(ic) = zz
72 endif
73
74 enddo
75
76
77 close(23)
78
79 return
80
subroutine get_indloc_from_indglo(local_el, nel_loc, ie, ic)
Returns local id from global id.

References get_indloc_from_indglo().

Referenced by make_spx_grid_with_loc_numeration().

Here is the call graph for this function:
Here is the caller graph for this function: