source: CIVL/mods/dev.civl.abc/examples/fortran/f77_standard/do_modify.f

main
Last change on this file was aad342c, checked in by Stephen Siegel <siegel@…>, 3 years ago

Performing huge refactor to incorporate ABC, GMC, and SARL into CIVL repo and use Java modules.

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@5664 fb995dde-84ed-4084-dfe6-e5aef3e2452c

  • Property mode set to 100644
File size: 588 bytes
Line 
1c Fortran 77 Standard Sec. 11.10, DO_Statement
2c Loops with strieded counter
3 program p
4 implicit none
5 integer counter, lower, upper, stride, testvar
6
7c Initial counter value should not matter
8 counter = 100000
9 testvar = 0
10 lower = 5
11 upper = 20
12 stride = 5
13 do 100, counter=lower,upper,stride
14 testvar = testvar + 1
15c none of the below should change the number of iterations
16 lower = -10
17 upper = 5000
18 stride = 2
19 100 continue
20c$ civl assert(counter==25)
21c$ civl assert(testvar==4)
22 end program
Note: See TracBrowser for help on using the repository browser.