SPEED
MAKE_WGT_SPX_NODES.f90
Go to the documentation of this file.
1! Copyright (C) 2012 The SPEED FOUNDATION
2! Author: Ilario Mazzieri
3!
4! This file is part of SPEED.
5!
6! SPEED is free software; you can redistribute it and/or modify it
7! under the terms of the GNU Affero General Public License as
8! published by the Free Software Foundation, either version 3 of the
9! License, or (at your option) any later version.
10!
11! SPEED is distributed in the hope that it will be useful, but
12! WITHOUT ANY WARRANTY; without even the implied warranty of
13! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14! Affero General Public License for more details.
15!
16! You should have received a copy of the GNU Affero General Public License
17! along with SPEED. If not, see <http://www.gnu.org/licenses/>.
18
28
29 subroutine make_wgt_spx_nodes(nb_node,spx_con_nnz,spx_con,node_wgt,nb_nz)
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
56 end subroutine make_wgt_spx_nodes
57
subroutine make_wgt_spx_nodes(nb_node, spx_con_nnz, spx_con, node_wgt
Computes multeplicity for spectral nodes.