File: do_enddo.f

package info (click to toggle)
ftnchek 3.1.2-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 6,436 kB
  • ctags: 5,393
  • sloc: ansic: 24,609; fortran: 5,565; yacc: 3,682; sh: 2,518; makefile: 772; lisp: 264; f90: 94; perl: 76
file content (26 lines) | stat: -rw-r--r-- 618 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
c  VAX-compatible fortran: underscores & do-enddo
      subroutine abc
      sum = 0.0
      do i=1,100
         sum = sum + i
      enddo
      print *,sum  !@#$*&
     # ,i
      other_sum = 1.0
      do while(other_sum .lt. 2000)
         other_sum = other_sum * 2.0
      end do
! here we have a nonstandard comment
      print *,other_sum
      dowhile ( x .ne. (1,2))
         x = 3.0
      end do
      do 100 while (.true.)
         read(*,*) sum
         if( sum .eq. 0.0 ) exit
 100  continue
      do 200, while (.false.)
         write(*,*) 'Cannot happen'
 200  end do
      end
      include 'average.f'