Changeset bd2278d for eninteract.f


Ignore:
Timestamp:
09/05/08 11:49:42 (16 years ago)
Author:
baerbaer <baerbaer@…>
Branches:
master
Children:
fafe4d6
Parents:
2ebb8b6
Message:

Reformatting comments and continuation marks.

Fortran 90 and higher use ! to mark comments no matter where they are in the
code. The only valid continuation marker is &.
I also added the SMMP.kdevelop.filelist to the repository to make it easier
to use kdevelop.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • eninteract.f

    r2ebb8b6 rbd2278d  
    1 c *********************************************************************
    2 c This file contains eninteract
    3 c
    4 c Copyright 2007       Frank Eisenmenger, U.H.E. Hansmann,
    5 c                      Jan H. Meinke, Sandipan Mohanty
    6 c
    7 c
    8 c Description: Calculates the interaction energy between molecules
    9 c The function assumes that all molecules are up-to-date. If in doubt
    10 c call energy first.
    11 c The energy function is based on the ECEPP/3 dataset.
    12 c
    13 c TODO: Intermolecular interaction energy for FLEX and ECEPP/2
     1! *********************************************************************
     2! This file contains eninteract
     3!
     4! Copyright 2007       Frank Eisenmenger, U.H.E. Hansmann,
     5!                      Jan H. Meinke, Sandipan Mohanty
     6!
     7!
     8! Description: Calculates the interaction energy between molecules
     9! The function assumes that all molecules are up-to-date. If in doubt
     10! call energy first.
     11! The energy function is based on the ECEPP/3 dataset.
     12!
     13! TODO: Intermolecular interaction energy for FLEX and ECEPP/2
    1414      real*8 function eninteract()
    1515
     
    2626              do jres= irsml1(jml), irsml2(jml)
    2727                do iat = iatrs1(ires), iatrs2(ires)
    28 c Atom class of current atom
     28! Atom class of current atom
    2929                  ity=ityat(iat)
    30 c Point charge at current atom
     30! Point charge at current atom
    3131                  cqi=conv*cgat(iat)
    32 c Cartesian coordinates of current atom
     32! Cartesian coordinates of current atom
    3333                  xi=xat(iat)
    3434                  yi=yat(iat)
     
    3636
    3737                  do jat = iatrs1(jres), iatrs2(jres)
    38 c Atom type of partner
     38! Atom type of partner
    3939                    jty=ityat(jat)
    40 c Differences in cartesian coordinates
     40! Differences in cartesian coordinates
    4141                    xj=xat(jat)
    4242                    yj=yat(jat)
     
    4646                    yij=yat(jat)-yi
    4747                    zij=zat(jat)-zi
    48 c Cartesian distance and higher powers
     48! Cartesian distance and higher powers
    4949                    rij2=xij*xij+yij*yij+zij*zij
    5050                    rij4=rij2*rij2
    5151                    rij6=rij4*rij2
    5252                    rij=sqrt(rij2)
    53 c Are we using a distance dependent dielectric constant?
     53! Are we using a distance dependent dielectric constant?
    5454                    if(epsd) then
    5555                      sr=slp*rij
     
    5858                      ep = 1.0d0
    5959                    end if
    60 c Coulomb interaction
     60! Coulomb interaction
    6161                    eyeli=eyeli+cqi*cgat(jat)/(rij*ep)
    62 c If the two atoms cannot form a hydrogen bond use 6-12 Lennard-Jones potential
     62! If the two atoms cannot form a hydrogen bond use 6-12 Lennard-Jones potential
    6363                    if (ihbty(ity,jty).eq.0) then
    6464                      eyvwi=eyvwi+aij(ity,jty)/(rij6*rij6)
    65      #                          -cij(ity,jty)/rij6
     65     &                          -cij(ity,jty)/rij6
    6666                    else
    67 c For hydrogen bonding use 10-12 Lennard-Jones potential
     67! For hydrogen bonding use 10-12 Lennard-Jones potential
    6868                      eyhbi=eyhbi+ahb(ity,jty)/(rij6*rij6)
    69      #                          -chb(ity,jty)/(rij6*rij4)
     69     &                          -chb(ity,jty)/(rij6*rij4)
    7070                    endif
    7171                  enddo
Note: See TracChangeset for help on using the changeset viewer.