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:
560 bytes
|
| Line | |
|---|
| 1 | PROGRAM MXMDRIVER
|
|---|
| 2 | IMPLICIT NONE
|
|---|
| 3 | !$CVL $input
|
|---|
| 4 | integer BOUND
|
|---|
| 5 | !$CVL $output
|
|---|
| 6 | integer OUTVAL
|
|---|
| 7 |
|
|---|
| 8 | INTEGER N = BOUND
|
|---|
| 9 | real RES
|
|---|
| 10 | real A(N,N),B(N,N),C(N,N)
|
|---|
| 11 | INTEGER I,J
|
|---|
| 12 | !$CVL $assume(BOUND .EQ. 2);
|
|---|
| 13 | RES = 0.0
|
|---|
| 14 | DO J=1,N
|
|---|
| 15 | DO I=1,N
|
|---|
| 16 | A(I,J) = 1.0*(I*N+J)
|
|---|
| 17 | B(I,J) = 1.0*(I-J*N)
|
|---|
| 18 | ENDDO
|
|---|
| 19 | ENDDO
|
|---|
| 20 | CALL MXM(A, N, B, N, C, N)
|
|---|
| 21 | DO J=1,N
|
|---|
| 22 | DO I=1,N
|
|---|
| 23 | RES = RES + C(I,J)
|
|---|
| 24 | ENDDO
|
|---|
| 25 | ENDDO
|
|---|
| 26 | PRINT *, RES
|
|---|
| 27 | OUTVAL = RES
|
|---|
| 28 | END
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.