Guest User

Untitled

a guest
Oct 26th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.       program convBASIS
  2.      
  3.       implicit none
  4.       character(len=30) :: line
  5.       character(len=2) :: element
  6.       character(len=4) :: shell
  7.       integer :: number
  8.       logical :: testshell
  9.       real :: waste
  10.  
  11. 100   format(A4,I1,F10.2)
  12. 200   format(I1,2X,A1)
  13.  
  14.       open(2, file='convBASIS.out', status='unknown')
  15.  
  16. 1000  read(*,*,end=9999) line
  17.      
  18.       if (line(1:4) .eq. '****') then
  19.          read (*,*,end=9999) element
  20.          write (2,'(A1)') "*"
  21.          write (2,'(A2)') element
  22.          write (2,'(A1)') "*"
  23.       endif
  24.  
  25.       testshell = line(1:1) .eq. 'S' .or.
  26.      &            line(1:1) .eq. 'P' .or.
  27.      &            line(1:1) .eq. 'D' .or.
  28.      &            line(1:1) .eq. 'F'
  29.      
  30.       if (testshell) then
  31.          read (line,100) shell, number, waste
  32.          write (*,*) number
  33.       endif
  34.      
  35.       GOTO 1000
  36.      
  37. 9999  end
Add Comment
Please, Sign In to add comment