Changeset bd2278d for opeflx.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
  • opeflx.f

    r2ebb8b6 rbd2278d  
    1 c **************************************************************
    2 c
    3 c This file contains the subroutines: opeflx,gdtflx
    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: opeflx,gdtflx
     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      subroutine opeflx(nml)
    1313
    14 c ......................................................................
    15 c PURPOSE: Calculate internal energy for FLEX dataset and its partial
    16 c          derivatives vs. variables using recursive algorithm from:
    17 c          Noguti T, Go N, J Phys Soc (Japan) v52 3685-3690 1984; Abe H,
    18 c          Braun W, Noguti T, Go N, Comp Chem v8 239-247 1984; Mazur A K,
    19 c          Abagyan R A, J Biomol Struct Dyn v6 815-832, which I modified
    20 c          for atomic forces instead of simple derivatives (see Lavery R,
    21 c          Sklenar H, Zakrzewska K, Pullman B, J Biomol Struct Dyn v3
    22 c          989-1014 1986)
    23 c
    24 c CALLS:   gdtflx
    25 c ......................................................................
     14! ......................................................................
     15! PURPOSE: Calculate internal energy for FLEX dataset and its partial
     16!          derivatives vs. variables using recursive algorithm from:
     17!          Noguti T, Go N, J Phys Soc (Japan) v52 3685-3690 1984; Abe H,
     18!          Braun W, Noguti T, Go N, Comp Chem v8 239-247 1984; Mazur A K,
     19!          Abagyan R A, J Biomol Struct Dyn v6 815-832, which I modified
     20!          for atomic forces instead of simple derivatives (see Lavery R,
     21!          Sklenar H, Zakrzewska K, Pullman B, J Biomol Struct Dyn v3
     22!          989-1014 1986)
     23!
     24! CALLS:   gdtflx
     25! ......................................................................
    2626
    2727      include 'INCL.H'
    2828
    2929      dimension xfat(mxat),yfat(mxat),zfat(mxat),
    30      #          xtat(mxat),ytat(mxat),ztat(mxat),
    31      #          xfvr(mxvr),yfvr(mxvr),zfvr(mxvr),
    32      #          xfrvr(mxvr),yfrvr(mxvr),zfrvr(mxvr)
     30     &          xtat(mxat),ytat(mxat),ztat(mxat),
     31     &          xfvr(mxvr),yfvr(mxvr),zfvr(mxvr),
     32     &          xfrvr(mxvr),yfrvr(mxvr),zfrvr(mxvr)
    3333
    3434
     
    4242      if (ntlvr.eq.0) then
    4343        write (*,'(a,i4)')
    44      #           ' opeflx> No variables defined in molecule #',nml
     44     &           ' opeflx> No variables defined in molecule #',nml
    4545        return
    4646      endif
     
    117117        endif
    118118
    119 c ============================================ Energies & Atomic forces
     119! ============================================ Energies & Atomic forces
    120120
    121121        xfiv=0.d0
     
    249249                    yfji=yfji+ dhb*py+ hhb*yij
    250250                    zfji=zfji+ dhb*pz+ hhb*zij
    251 c __________________________________________________ No Hydrogen Bond
     251! __________________________________________________ No Hydrogen Bond
    252252                  else
    253253                    eyvw=eyvw+eyrp-eyds
     
    365365                  yfji=yfji+ dhb*py+ hhb*yij
    366366                  zfji=zfji+ dhb*pz+ hhb*zij
    367 c __________________________________________________ No Hydrogen Bond
     367! __________________________________________________ No Hydrogen Bond
    368368                else
    369369                  eyvw=eyvw+eyrp-eyds
     
    424424
    425425          gdeyvr(iv)= (ey*zb-ez*yb)*xfiv+(ez*xb-ex*zb)*yfiv+
    426      #                (ex*yb-ey*xb)*zfiv
    427      #               +ex*xfriv+ey*yfriv+ez*zfriv -fvr
     426     &                (ex*yb-ey*xb)*zfiv
     427     &               +ex*xfriv+ey*yfriv+ez*zfriv -fvr
    428428
    429429        elseif (it.eq.1) then         ! b.length
     
    441441      return
    442442      end
    443 c *****************************
     443! *****************************
    444444      subroutine gdtflx(nml,iv)
    445445
    446 c .....................................................................
    447 c PURPOSE: calculate partial derivative of internal energy for molecule
    448 c          'nml' vs. variable 'iv' NUMERICALLY and compare with
    449 c          its value obtained analytically
    450 c
    451 c CALLS:  setvar, enyflx
    452 c .....................................................................
     446! .....................................................................
     447! PURPOSE: calculate partial derivative of internal energy for molecule
     448!          'nml' vs. variable 'iv' NUMERICALLY and compare with
     449!          its value obtained analytically
     450!
     451! CALLS:  setvar, enyflx
     452! .....................................................................
    453453
    454454      include 'INCL.H'
     
    458458      dimension vlvrx(mxvr)
    459459
    460 c ____________________________ get & save values of variables
     460! ____________________________ get & save values of variables
    461461      do i=1,ivrml1(ntlml)+nvrml(ntlml)-1
    462462        it=ityvr(i)  ! type
     
    481481
    482482      write (*,'(1x,2a,2(e12.6,a))') nmvr(iv),': ',gda,' (',
    483      #       abs(gda-gdn),')'
    484 
    485 c _________________________ restore
     483     &       abs(gda-gdn),')'
     484
     485! _________________________ restore
    486486      vlvrx(iv)=ovr
    487487      call setvar(nml,vlvrx)
Note: See TracChangeset for help on using the changeset viewer.