source: CIVL/mods/dev.civl.abc/examples/fortran/simple-test/computedGoto_doLoop_Sample.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: 453 bytes
Line 
1 subroutine test(size,array,case)
2 integer size, case, i, n
3 double precision sum
4 double precision array(size)
5
6
7 sum = 0.0d0
8 n = 10
9 go to (10,30), case
10 10 continue
11 do 11 i = 1, n, 2
12 sum = 1.0d0
13 11 continue
14 do 12 i = 1, n
15 sum = 2.0d0
16 12 continue
17 go to 50
18
19 30 continue
20 sum = 0.0d0
21 go to 50
22
23 50 continue
24 return
25
26 END
27
Note: See TracBrowser for help on using the repository browser.