source:
CIVL/mods/dev.civl.abc/examples/fortran/f77_standard/dimension.f
| Last change on this file was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 331 bytes | |
| Line | |
|---|---|
| 1 | c F77 standard Sec. 8.1: A DIMENSION statement is used to specify the |
| 2 | c symbolic names and dimension specifications of arrays. |
| 3 | program p |
| 4 | dimension i(4,-1:3), r(2) |
| 5 | i = 3.5 |
| 6 | r = 3.5 |
| 7 | c$ civl assert( all(shape(i) .eq. (/4,5/)) ) |
| 8 | c$ civl assert( i(3,0) .eq. 3 ) |
| 9 | c$ civl assert( r(1) .eq. 3.5 ) |
| 10 | end program |
Note:
See TracBrowser
for help on using the repository browser.
