Hi,
I have a bunch of Fortran code that I'm trying to analyze.
Below is a piece that I'm trying to make sense of. Any insight is appreciated:
I have a bunch of Fortran code that I'm trying to analyze.
Below is a piece that I'm trying to make sense of. Any insight is appreciated:
Code:
real value
integer lun,lm,caller,chem,idloc
logical found,setmole
real ssen,ssemes,a
integer i,ib,ih,eh,ssemit,ssenum,ssebak
a=0.
i=ssemit()
a=a+ssemes('C{*} ','Carbon(s):',47.6,1,1,lun)
a=a+ssemes('RBr ','Bromine(s):',76.1,2,1,lun)
a=a+ssemes('RCl ','Chlorine(s):',62.0,3,1,lun)
a=a+ssemes('RF ','Florine(s):',30.5,4,1,lun)
a=a+ssemes('RI ','Iodine(s):',98.9,5,1,lun)
a=a+ssemes('N{*} ','Nitrogen(s):',41.9,6,1,lun)
a=a+ssemes('O{*} ','Oxygen(s):',36.2,7,1,lun)
a=a+ssemes('P{*} ','Phosphorus:',73.5,8,1,lun)
a=a+ssemes('S{*} ','Sulfur(s):',67.7,9,1,lun)
ib=ssenum('R?R ')
ih=0
eh=0
do i=1,numatm
ih=ih+atmhyd(i) ! Implicit Hydrogens
if (atmtyp(i).eq.hydro)eh=eh+1 ! Explicit Hydrogen
enddo
a=a+ssen(ih+eh,'Hydrogen(s):',24.7,1,lun)
a=a+ssen(ih+ib,'Bond(s):',-19.0,1,lun)
i=ssebak()