main
|
Last change
on this file was ea777aa, checked in by Alex Wilton <awilton@…>, 3 years ago |
|
Moved examples, include, build_default.properties, common.xml, and README out from dev.civl.com into the root of the repo.
git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@5704 fb995dde-84ed-4084-dfe6-e5aef3e2452c
|
-
Property mode
set to
100644
|
|
File size:
533 bytes
|
| Rev | Line | |
|---|
| [a24d685] | 1 | PROGRAM MXMDRIVER
|
|---|
| 2 |
|
|---|
| 3 | INTEGER N
|
|---|
| 4 | PARAMETER (N=4)
|
|---|
| 5 | real A(N,N),B(N,N),C(N,N)
|
|---|
| 6 | INTEGER I,J
|
|---|
| 7 |
|
|---|
| 8 | DO J=1,N
|
|---|
| 9 | DO I=1,N
|
|---|
| 10 | A(I,J) = 1.0*(I+J)
|
|---|
| 11 | B(I,J) = 1.0*(I-J)
|
|---|
| 12 | ENDDO
|
|---|
| 13 | ENDDO
|
|---|
| 14 |
|
|---|
| 15 | DO I=1,N
|
|---|
| 16 | DO J=1,N
|
|---|
| 17 | C(I,J) = 0.0
|
|---|
| 18 | DO K=1,N
|
|---|
| 19 | C(I,J) = C(I,J) + A(I,K)*B(K,J)
|
|---|
| 20 | ENDDO
|
|---|
| 21 | ENDDO
|
|---|
| 22 | ENDDO
|
|---|
| 23 |
|
|---|
| 24 | DO J=1,N
|
|---|
| 25 | DO I=1,N
|
|---|
| 26 | PRINT *,"C(",I,",",J,") = ",C(I,J)
|
|---|
| 27 | ENDDO
|
|---|
| 28 | ENDDO
|
|---|
| 29 |
|
|---|
| 30 | END
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.