SPEED
MAKE_LOC_NODES_NUMERATION.f90 File Reference

Go to the source code of this file.

Functions/Subroutines

subroutine make_loc_nodes_numeration (nnloc, local_n_num, nrcv, no
 Makes local numeration vector.
 

Function/Subroutine Documentation

◆ make_loc_nodes_numeration()

subroutine make_loc_nodes_numeration ( integer*4  nnloc,
integer*4, dimension(nnloc), intent(inout)  local_n_num,
integer*4  nrcv,
  no 
)

Makes local numeration vector.

Author
Ilario Mazzieri
Date
September, 2013
Version
1.0
Parameters
[in]nnlocnumber of local nodes
[in,out]local_n_numlocal node numbering
[in]nrcvnumber of nodes to receive
[in]node_rcvlist of nodes to receive

Definition at line 29 of file MAKE_LOC_NODES_NUMERATION.f90.

30
31 implicit none
32
33 integer*4 :: nnloc, nrcv
34 integer*4 :: i,j
35
36 integer*4, dimension(nnloc) :: copy_n_num
37 integer*4, dimension(nrcv) :: node_rcv
38 integer*4, dimension(nnloc), intent(inout) :: local_n_num
39
40 do i = 1, nrcv
41 do j = 1, nnloc
42 if(node_rcv(i) .eq. local_n_num(j)) local_n_num(j) = 0
43 enddo
44 enddo
45
46 i = 1
47 do j = 1, nnloc
48 if(local_n_num(j) .ne. 0) then
49 copy_n_num(i) = local_n_num(j)
50 i = i + 1
51 endif
52 enddo
53
54 copy_n_num(nnloc - nrcv + 1 : nnloc) = node_rcv
55 local_n_num = copy_n_num
56

Referenced by make_spx_grid_with_loc_numeration().

Here is the caller graph for this function: