source: trunk/LMDZ.GENERIC/libf/bibio/mxm.F @ 773

Last change on this file since 773 was 135, checked in by aslmd, 14 years ago

CHANGEMENT ARBORESCENCE ETAPE 2 -- NON COMPLET

File size: 729 bytes
Line 
1       SUBROUTINE MXM(A,NAR,B,NAC,C,NBC)
2c
3c
4c    Multiplication of matrix A by matrix B ,and result in matrix C
5c
6c
7c      NAR : number of   rows  for matrix  A and  matrix  C
8c      NAC : number of columns for matrix  A and number of rows
9c                              for matrix  B
10c      NBC : number of columns for matrix  B and  matrix  C
11c
12c
13       IMPLICIT NONE
14c
15       INTEGER  NAR,NAC,NBC, I,J,K
16       REAL     A(NAR,NAC), B(NAC,NBC), C(NAR,NBC)
17c
18       DO 10 J = 1,NBC
19       DO 10 I = 1,NAR
20       C(I,J)=0.
2110     CONTINUE
22c
23       DO 50 J = 1,NBC
24       DO 40 I = 1,NAR
25
26       DO 20 K = 1,NAC
27       C(I,J)  = C(I,J) + A(I,K) * B(K,J)
2820     CONTINUE
29
3040     CONTINUE
3150     CONTINUE
32
33       RETURN
34       END
Note: See TracBrowser for help on using the repository browser.