Changeset 078aff3 for energy.f


Ignore:
Timestamp:
06/22/08 14:33:26 (16 years ago)
Author:
baerbaer <baerbaer@…>
Branches:
master
Children:
b477fe8
Parents:
621e10f
Message:

Uncomment lines related to analytic solvent calculation.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • energy.f

    r621e10f r078aff3  
    1 c **************************************************************
    2 c
    3 c This file contains the subroutines: energy, enyinternal
    4 c
    5 c Copyright 2003-2005  Frank Eisenmenger, U.H.E. Hansmann,
    6 c                      Shura Hayryan, Chin-Ku
    7 c Copyright 2007       Frank Eisenmenger, U.H.E. Hansmann,
    8 c                      Jan H. Meinke, Sandipan Mohanty
    9 c
    10 c **************************************************************
     1! **************************************************************
     2!
     3! This file contains the subroutines: energy, enyinternal
     4!
     5! Copyright 2003-2005  Frank Eisenmenger, U.H.E. Hansmann,
     6!                      Shura Hayryan, Chin-Ku
     7! Copyright 2007       Frank Eisenmenger, U.H.E. Hansmann,
     8!                      Jan H. Meinke, Sandipan Mohanty
     9!
     10! **************************************************************
    1111
    1212      real*8 function energy()
    13 c ------------------------------------------
    14 c PURPOSE: calculate the *total* energy of the system
    15 c
    16 c ientyp = 0 for ECEPP3, 1 for FLEX, 2 for Lund
    17 c          3 for ECEPP3 with Abagyan corrections
    18 c
    19 c CALLS:  enyflx,enyreg,enyshe,enysol,esolan,setvar, eninteract
    20 c
    21 c -------------------------------------------------
     13! ------------------------------------------
     14! PURPOSE: calculate the *total* energy of the system
     15!
     16! ientyp = 0 for ECEPP3, 1 for FLEX, 2 for Lund
     17!          3 for ECEPP3 with Abagyan corrections
     18!
     19! CALLS:  enyflx,enyreg,enyshe,enysol,esolan,setvar, eninteract
     20!
     21! -------------------------------------------------
    2222
    2323      include 'INCL.H'
    2424      double precision teysm, teyel, teyvw, teyhb, teyvr
    25 c      print *,'energy function with ientyp  = ',ientyp   
     25!      print *,'energy function with ientyp  = ',ientyp   
    2626      esm = 0.d0
    2727      teysm = 0.d0
     
    5555        teyvr = teyvr + eyvr
    5656        if (ientyp.eq.2) then
    57 c     The Lund term stores the hydrophobicity energy in eysl
     57!     The Lund term stores the hydrophobicity energy in eysl
    5858           teysl = teysl + eysl
    5959        else
    60 c     .. and the excluded volume term in eyvw, which is calculated once.
     60!     .. and the excluded volume term in eyvw, which is calculated once.
    6161           teyvw = teyvw + eyvw
    6262        endif
     
    6767
    6868      if (ientyp.ne.2) then
    69 c     Don't touch eysl if using Lund potential, as enylun stores
    70 c     its hydrophobicity term there.
     69!     Don't touch eysl if using Lund potential, as enylun stores
     70!     its hydrophobicity term there.
    7171         if (itysol.gt.0) then
    7272            esm=esm+enysol(0)
    7373            teysl = teysl+eysl
    74 !     elseif (itysol.lt.0) then
    75 !     esm=esm+esolan(0)
     74      elseif (itysol.lt.0) then
     75      esm=esm+esolan(0)
    7676         else
    7777            eysl=0.d0
    7878         endif
    7979      else
    80 c     Add excluded volume term and save it in eyvw
     80!     Add excluded volume term and save it in eyvw
    8181         esm=esm+exvlun(0)
    8282         teyvw = teyvw+eyvw
    8383      endif
    8484
    85 c The Abagyan entropic corrections depend on the area exposed to the
    86 c solvent for each residue. So, this term has to be evaluated after the
    87 c solvent term.
     85! The Abagyan entropic corrections depend on the area exposed to the
     86! solvent for each residue. So, this term has to be evaluated after the
     87! solvent term.
    8888      eyab=0.0
    8989      if (ientyp.eq.3) then
     
    9393      endif
    9494      esm=esm+eyab
    95 c Partial energies for the entire system. If you need the partial
    96 c energies for a single molecule call enyinternal.
     95! Partial energies for the entire system. If you need the partial
     96! energies for a single molecule call enyinternal.
    9797      eysm = teysm
    9898      eyel = teyel
     
    103103     
    104104      if (ientyp.ne.2) then
    105 c     This is temporary. eninteract() does not yet know how to calculate
    106 c     interactions using the Lund potential.
     105!     This is temporary. eninteract() does not yet know how to calculate
     106!     interactions using the Lund potential.
    107107         energy = esm + eninteract()
    108108         return
     
    112112      end
    113113
    114 cc Calculates the internal energy for a single molecule.
    115 c  All the partial energies are thus set to their values for molecule
    116 c  nml.
    117 c
    118 c  @param nml the ID of the molecule
    119 c  @return internal energy of a single molecule
    120 c
    121 c  @author Jan H. Meinke <j.meinke@fz-juelich.de>
     114!c Calculates the internal energy for a single molecule.
     115!  All the partial energies are thus set to their values for molecule
     116!  nml.
     117!
     118!  @param nml the ID of the molecule
     119!  @return internal energy of a single molecule
     120!
     121!  @author Jan H. Meinke <j.meinke@fz-juelich.de>
    122122      real*8 function enyinternal(nml)
    123123
    124 cf2py intent(in) nml
     124!f2py intent(in) nml
    125125     
    126126      include 'INCL.H'
     
    142142         if (itysol.gt.0) then
    143143            esm=esm+enysol(nml)
    144 !     elseif (itysol.lt.0) then
    145 !     esm=esm+esolan(nml)
     144      elseif (itysol.lt.0) then
     145      esm=esm+esolan(nml)
    146146         else
    147147            eysl=0.d0
     
    150150         esm=esm+exvlun(nml)
    151151      endif
    152 c The Abagyan entropic corrections depend on the area exposed to the
    153 c solvent for each residue. So, this term has to be evaluated after the
    154 c solvent term.
     152! The Abagyan entropic corrections depend on the area exposed to the
     153! solvent for each residue. So, this term has to be evaluated after the
     154! solvent term.
    155155      eyab=0.0
    156156      if (ientyp.eq.3) then
Note: See TracChangeset for help on using the changeset viewer.