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

    r2ebb8b6 rbd2278d  
    1 c **************************************************************
    2 c
    3 c This file contains the subroutines:  opesol,gdtsol
    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:  opesol,gdtsol
     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 opesol(nml)
    1313
    14 c ......................................................................
    15 c PURPOSE:  derivatives of solvatation energy vs. internal variables for
    16 c           molecule 'nml'
    17 c
    18 c  NB: if the unit axis for an internal variable coincides with a
    19 c      global axis (i.e. for torsion or bond length variation round
    20 c      or along 'xrfax', respectively, and bd. angle var. round
    21 c      'zrfax'): VdW & 14 interaction partners of moving set atoms
    22 c      should be used for calculation, instead of the mov. sets,
    23 c      with opposite sign.
    24 c
    25 c      Example: By the the way the molecule-fixed system is set up,
    26 c               changes in Phi_1 affect atomic positions BEFORE the
    27 c               N-C^alpha bond relatively to the space-fixed system,
    28 c               not the moving set of Phi_1.
    29 c
    30 c CALLS:    esolan, gdtsol
    31 c ......................................................................
     14! ......................................................................
     15! PURPOSE:  derivatives of solvatation energy vs. internal variables for
     16!           molecule 'nml'
     17!
     18!  NB: if the unit axis for an internal variable coincides with a
     19!      global axis (i.e. for torsion or bond length variation round
     20!      or along 'xrfax', respectively, and bd. angle var. round
     21!      'zrfax'): VdW & 14 interaction partners of moving set atoms
     22!      should be used for calculation, instead of the mov. sets,
     23!      with opposite sign.
     24!
     25!      Example: By the the way the molecule-fixed system is set up,
     26!               changes in Phi_1 affect atomic positions BEFORE the
     27!               N-C^alpha bond relatively to the space-fixed system,
     28!               not the moving set of Phi_1.
     29!
     30! CALLS:    esolan, gdtsol
     31! ......................................................................
    3232
    3333      include 'INCL.H'
    3434
    3535      dimension xfat(mxat),yfat(mxat),zfat(mxat),
    36      #          xfrat(mxat),yfrat(mxat),zfrat(mxat),
    37 
    38      #          xfvr(mxvr),yfvr(mxvr),zfvr(mxvr),
    39      #          xfrvr(mxvr),yfrvr(mxvr),zfrvr(mxvr)
     36     &          xfrat(mxat),yfrat(mxat),zfrat(mxat),
     37
     38     &          xfvr(mxvr),yfvr(mxvr),zfvr(mxvr),
     39     &          xfrvr(mxvr),yfrvr(mxvr),zfrvr(mxvr)
    4040
    4141      logical   lnb
     
    4545      if (ntlvr.eq.0) then
    4646        write (*,'(a,i4)')
    47      #           ' opesol> No variables defined in molecule #',nml
     47     &           ' opesol> No variables defined in molecule #',nml
    4848        return
    4949      endif
     
    6666      eysl = esolan(nml)
    6767
    68 c -------------------------------------------------- f & g for atoms
     68! -------------------------------------------------- f & g for atoms
    6969
    7070      do i=iatrs1(irsml1(nml)),iatrs2(irsml2(nml))
     
    217217
    218218          gdeysl(iv)= (ey*zb-ez*yb)*xfiv+(ez*xb-ex*zb)*yfiv+
    219      #                 (ex*yb-ey*xb)*zfiv
    220      #                +ex*xfriv+ey*yfriv+ez*zfriv
     219     &                 (ex*yb-ey*xb)*zfiv
     220     &                +ex*xfriv+ey*yfriv+ez*zfriv
    221221
    222222        elseif (it.eq.1) then         ! b.length
     
    232232      return
    233233      end
    234 c *****************************
     234! *****************************
    235235      subroutine gdtsol(nml,iv)
    236236
    237 c .....................................................................
    238 c PURPOSE: calculate partial derivative of solvation energy for molecule
    239 c          'nml' vs. variable 'iv' NUMERICALLY and compare with
    240 c          its value obtained analytically
    241 c
    242 c CALLS:  setvar, esolan
    243 c .....................................................................
     237! .....................................................................
     238! PURPOSE: calculate partial derivative of solvation energy for molecule
     239!          'nml' vs. variable 'iv' NUMERICALLY and compare with
     240!          its value obtained analytically
     241!
     242! CALLS:  setvar, esolan
     243! .....................................................................
    244244
    245245      include 'INCL.H'
     
    250250
    251251
    252 c ____________________________ get & save values of variables
     252! ____________________________ get & save values of variables
    253253      do i=1,ivrml1(ntlml)+nvrml(ntlml)-1
    254254        it=ityvr(i)  ! type
     
    272272
    273273      write (*,'(1x,2a,2(e12.6,a))') nmvr(iv),': ',gda,' (',
    274      #       abs(gda-gdn),')'
    275 
    276 c _________________________ restore vars
     274     &       abs(gda-gdn),')'
     275
     276! _________________________ restore vars
    277277      vlvrx(iv)=ovr
    278278
Note: See TracChangeset for help on using the changeset viewer.