Last change
on this file since 3553 was
57,
checked in by aslmd, 14 years ago
|
mineur LMD_MM_MARS: ajout du GCM ancienne physique, systeme maintenant complet sur SVN (ne manque que la base de donnees d'etats initiaux)
|
File size:
401 bytes
|
Line | |
---|
1 | SUBROUTINE MXV(A,NRA,B,NCA,C) |
---|
2 | IMPLICIT NONE |
---|
3 | |
---|
4 | INTEGER NRA,NCA |
---|
5 | REAL A(NRA,NCA), B(NCA), C(NRA) |
---|
6 | |
---|
7 | INTEGER I,J |
---|
8 | |
---|
9 | c initialize product |
---|
10 | DO 100 I = 1, NRA |
---|
11 | C(I) = 0. |
---|
12 | 100 CONTINUE |
---|
13 | c multiply matrix A and vector B |
---|
14 | DO 220 J = 1, NCA |
---|
15 | DO 210 I = 1, NRA |
---|
16 | C(I) = C(I) + A(I,J)*B(J) |
---|
17 | 210 CONTINUE |
---|
18 | 220 CONTINUE |
---|
19 | RETURN |
---|
20 | END |
---|
Note: See
TracBrowser
for help on using the repository browser.