source:
CIVL/mods/dev.civl.com/examples/fortran/simple/omp_loop.F95@
cb4d4f4
| Last change on this file since cb4d4f4 was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 165 bytes | |
| Line | |
|---|---|
| 1 | program OMPLOOP |
| 2 | use omp_lib |
| 3 | integer :: i |
| 4 | integer :: a(5) |
| 5 | |
| 6 | !$omp parallel do |
| 7 | do i = 1, 5 |
| 8 | a(i) = i |
| 9 | end do |
| 10 | !$omp end parallel do |
| 11 | end program |
Note:
See TracBrowser
for help on using the repository browser.
