SPEED
MAKE_WGT_SPX_NODES.f90 File Reference

Go to the source code of this file.

Functions/Subroutines

subroutine make_wgt_spx_nodes (nb_node, spx_con_nnz, spx_con, node_wgt
 Computes multeplicity for spectral nodes.
 

Function/Subroutine Documentation

◆ make_wgt_spx_nodes()

subroutine make_wgt_spx_nodes ( integer*4  nb_node,
integer*4  spx_con_nnz,
integer*4, dimension(0:spx_con_nnz)  spx_con,
integer*4, dimension(nb_node)  node_wgt 
)

Computes multeplicity for spectral nodes.

Author
Ilario Mazzieri
Date
September, 2013
Version
1.0
Parameters
[in]nb_nodeGLL nodes
[in]spx_conspectral connectivity vector
[out]node_wgtnode_wgt(i) contains the multiplicity of the i-th GLL node (e.g. if the node i is shared by 4 elements node_wgt(i) = 4
[out]nb_nznumber of GLL nodes + number of GLL nodes including repetitions + 1

Definition at line 29 of file MAKE_WGT_SPX_NODES.f90.

30
31
32 implicit none
33
34 integer*4 :: nb_node,spx_con_nnz,nb_nz
35 integer*4 :: i,j,ie,nb_elem,nn3
36
37 integer*4, dimension(0:spx_con_nnz) :: spx_con
38 integer*4, dimension(nb_node) :: node_wgt
39
40 nb_nz = nb_node +1
41 node_wgt = 0
42
43 nb_elem = spx_con(0) -1
44 do ie = 1, nb_elem
45 nn3 = spx_con(ie) - spx_con(ie -1) -1
46 do i = 1,nn3
47 j = spx_con(spx_con(ie -1) +i)
48
49 node_wgt(j) = node_wgt(j) +1
50 nb_nz = nb_nz +1
51 enddo
52 enddo
53
54 return
55