Changeset 32289cd for eyabgn.f


Ignore:
Timestamp:
11/19/09 11:29:41 (14 years ago)
Author:
baerbaer <baerbaer@…>
Branches:
master
Children:
38d77eb
Parents:
6650a56
Message:

Explicitly declare variables.

git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/smmp/trunk@33 26dc1dd8-5c4e-0410-9ffe-d298b4865968

File:
1 edited

Legend:

Unmodified
Added
Removed
  • eyabgn.f

    r6650a56 r32289cd  
    55!                      Jan H. Meinke, Sandipan Mohanty
    66!
    7 ! Corrections to ECEPP energy terms due to R. A. Abagyan et al. 
    8 ! 
     7! Corrections to ECEPP energy terms due to R. A. Abagyan et al.
     8!
    99! Two terms are calculated: eyrccr and eyentr, representing respectively
    10 ! c a term to slightly shift the backbone dihedral angle preferences in 
     10! c a term to slightly shift the backbone dihedral angle preferences in
    1111! the ECEPP potential slightly away from the helix region, and another
    12 ! term to estimate the side-chain entropy from a given configuration. 
     12! term to estimate the side-chain entropy from a given configuration.
    1313!
    1414!
     
    1616      real*8 function eyrccr(nml)
    1717      include 'INCL.H'
     18      double precision et, rsscl
     19
     20      integer nml, istres, indres, i, ipsi, in, ica, ic, mlvr, iphi
     21
    1822      dimension iN(mxrs),iCa(mxrs),iC(mxrs),mlvr(mxvr)
    1923      dimension iphi(mxrs),ipsi(mxrs)
     
    3438         call tolost(mynm)
    3539         if ((mynm.eq.'val').or.(mynm.eq.'ile').or.
    36      &           (mynm.eq.'thr')) then 
     40     &           (mynm.eq.'thr')) then
    3741            rsscl=1.0
    38          else 
     42         else
    3943            rsscl=0.5
    4044         endif
     
    4852      eyrccr=et
    4953      return
    50       end 
     54      end
    5155
    5256      subroutine init_abgn
     
    5458!       dimension rsstrg(mxrs)
    5559!       common /abgncor/rsstrg
     60      double precision xarea, estrg
     61
     62      integer i, istres, indres, imytyp, j
     63
    5664      dimension xarea(nrsty),estrg(nrsty)
    5765      character mynm*4
     
    102110!            print *,'comparing ',mynm,' with ',rsnmcd(j),imytyp
    103111         enddo
    104          if (imytyp.eq.0) then 
     112         if (imytyp.eq.0) then
    105113            print *, 'Unknown residue type ',seq(i)
    106114            print *, 'Abagyan term strength set to 0'
    107115            rsstrg(i)=0.0
    108          else 
     116         else
    109117            rsstrg(i)=estrg(imytyp)/xarea(imytyp)
    110118         endif
    111119!         print *,'residue ',i,seq(i),' type ',imytyp
    112 !         print *, 'strength for residue ',i,seq(i),' is ',rsstrg(i) 
     120!         print *, 'strength for residue ',i,seq(i),' is ',rsstrg(i)
    113121      enddo
    114122      print *, 'initialized Abagyan corrections to ECEPP force field'
    115123      end
    116      
     124
    117125      real*8 function eyentr(nml)
    118126      include 'INCL.H'
     
    121129!       common/ressurf/surfres(mxrs)
    122130!      common/bet/beta
     131      double precision eentr, aars, strh
     132
     133      integer nml, istres, indres, i
     134
    123135      eentr=0
    124136      if (nml.eq.0) then
     
    136148!        The maximal burial entropies were estimated at temperature 300k
    137149!        The values in the array estrg are k_B * T (=300k) * Entropy
    138 !        Presently we need it at temperature 1/beta, so we need to 
     150!        Presently we need it at temperature 1/beta, so we need to
    139151!        multiply the strengths in estrg with (1/beta)/(300 kelvin)
    140152!        300 kelvin is approximately 0.59576607 kcal/mol.
     
    149161      return
    150162      end
    151      
    152       real*8 function eyabgn(nml) 
     163
     164      real*8 function eyabgn(nml)
    153165      include 'INCL.H'
     166      double precision eyrccr, eyentr
     167
     168      integer nml
     169
    154170      eyabgn=eyrccr(nml)+eyentr(nml)
    155171!      print *,'Abagyan term = ',eyabgn
Note: See TracChangeset for help on using the changeset viewer.