blob: 679442563cc99e88b1b16fd47417871ceb923ee3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
*DECK RENDEG
FUNCTION RENDEG(N,LC,IM,MCU,NODE,MASK)
*
*-----------------------------------------------------------------------
*
*Purpose:
* Find the degree of a node in matrix graph in MSR format.
*
*Copyright:
* Copyright (C) 2002 Ecole Polytechnique de Montreal
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version
*
*Author(s): R. Le Tellier
*
*Parameters: input
* N order of the system.
* LC size of MCU.
* IM
* MCU connection matrices which defines the graph of the ACA matrix.
* NODE node considered.
* MASK mask for node to be considered in this search.
*
*-----------------------------------------------------------------------
*
IMPLICIT NONE
*---
* SUBROUTINE ARGUMENTS
*---
INTEGER RENDEG
INTEGER N,LC,IM(N+1),MCU(LC),NODE,MASK(N)
*---
* LOCAL VARIABLES
*---
INTEGER J,NJ
*
RENDEG=0
DO J=IM(NODE)+1,IM(NODE+1)
NJ=MCU(J)
IF (NJ.GT.0) THEN
IF (MASK(NJ).EQ.1) RENDEG=RENDEG+1
ENDIF
ENDDO
*
RETURN
END
|