source:
CIVL/mods/dev.civl.abc/examples/fortran/argonne/LOOPS/b.f90
| Last change on this file was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 199 bytes | |
| Line | |
|---|---|
| 1 | subroutine f(n, a, b) |
| 2 | integer :: n, i |
| 3 | double precision :: a, b |
| 4 | do i=0,n-1 |
| 5 | a = a+a*b + a*b*b |
| 6 | if(.not. (mod(i,2) .eq. 0)) then |
| 7 | a = a+b*a*a + b*a; |
| 8 | end if |
| 9 | end do |
| 10 | end subroutine |
Note:
See TracBrowser
for help on using the repository browser.
