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

    r2ebb8b6 rbd2278d  
    1 c **************************************************************
    2 c
    3 c This file contains the subroutines: enysol,tessel
    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: enysol,tessel
     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     
     
    1616      include 'mpif.h'
    1717
    18 c --------------------------------------------------------------
    19 c
    20 c     Double Cubic Lattice algorithm for calculating the
    21 c     solvation energy of proteins using
    22 c     solvent accessible area method.
    23 c
    24 c     if nmol == 0 do solvation energy over all residues.
    25 c CALLS: nursat
    26 c
    27 c -------------------------------------------------------------
    28 c TODO: Check the solvent energy for multiple molecules     
     18! --------------------------------------------------------------
     19!
     20!     Double Cubic Lattice algorithm for calculating the
     21!     solvation energy of proteins using
     22!     solvent accessible area method.
     23!
     24!     if nmol == 0 do solvation energy over all residues.
     25! CALLS: nursat
     26!
     27! -------------------------------------------------------------
     28! TODO: Check the solvent energy for multiple molecules     
    2929      dimension numbox(mxat),inbox(mxbox+1),indsort(mxat),look(mxat)
    3030      dimension xyz(mxinbox,3),radb(mxinbox),radb2(mxinbox)
     
    101101      diamax=2.d0*rmax
    102102
    103 c  The sizes of the big box
     103!  The sizes of the big box
    104104
    105105      sizex=xmax-xmin
     
    107107      sizez=zmax-zmin
    108108
    109 c  How many maximal diameters in each size ?
     109!  How many maximal diameters in each size ?
    110110
    111111      ndx=sizex/diamax + 1
     
    113113      ndz=sizez/diamax + 1
    114114
    115 c We may need the number of quadratic boxes in (X,Y) plane
     115! We may need the number of quadratic boxes in (X,Y) plane
    116116
    117117      nqxy=ndx*ndy
    118118
    119 c   The number of cubic boxes of the size "diamax"
     119!   The number of cubic boxes of the size "diamax"
    120120
    121121      ncbox=nqxy*ndz
     
    125125      end if
    126126       
    127 c Let us shift the borders to home all boxes
     127! Let us shift the borders to home all boxes
    128128
    129129      shiftx=(dble(ndx)*diamax-sizex)/2.d0
     
    137137      zmax=zmax+shiftz
    138138
    139 c Finding the box of each atom
     139! Finding the box of each atom
    140140
    141141      do j=nlow,nup
     
    159159      end do
    160160
    161 c  Summation over the boxes
     161!  Summation over the boxes
    162162
    163163      do i=1,ncbox
     
    166166         
    167167       
    168 c   Sorting the atoms by the their box numbers
     168!   Sorting the atoms by the their box numbers
    169169
    170170      do i=nlow,nup
     
    175175      end do   
    176176         
    177 c    Getting started
    178 c    We have to loop over ncbox boxes and have no processors available
     177!    Getting started
     178!    We have to loop over ncbox boxes and have no processors available
    179179      boxpp = 1.0 * ncbox / no
    180180      iboxmin = boxpp * myrank
     
    191191!     ibox=ix+iy*ndx+iz*nqxy + 1
    192192
    193 c  Does this box contain atoms ?
     193!  Does this box contain atoms ?
    194194
    195195           lbn=inbox(ibox+1)-inbox(ibox)
     
    203203             nez=min(iz+1,ndz-1)
    204204                     
    205 c  Atoms in the boxes around
     205!  Atoms in the boxes around
    206206
    207207             jcnt=1
     
    235235                     dr=1.0d0+akrad
    236236                     dr=dr*dr
    237 cc if contact
     237!c if contact
    238238                     if(dd.le.dr) then
    239239                       nnei=nnei+1
     
    246246                   end if
    247247                 end do
    248 cc
     248!c
    249249                  do il=1,npnt
    250250                     surfc(il)=.false.
    251251                  end do
    252252
    253 c  Check overlap
     253!  Check overlap
    254254
    255255                  lst=1
     
    293293                 area   = sdr*dble(icount)
    294294                 volume = sdr/3.0d0*(trad*dble(icount)
    295      #                               +(xat(jbi)-avr_x)*dx
    296      #                               +(yat(jbi)-avr_y)*dy
    297      #                               +(zat(jbi)-avr_z)*dz)
     295     &                               +(xat(jbi)-avr_x)*dx
     296     &                               +(yat(jbi)-avr_y)*dy
     297     &                               +(zat(jbi)-avr_z)*dz)
    298298
    299299                 asa=asa+area
    300300                 vdvol=vdvol+volume
    301301                 eysl=eysl+area*sigma(jbi)
    302 c Separate hydrophilic (h) and hyrdophobic (p) contributions to eysl
     302! Separate hydrophilic (h) and hyrdophobic (p) contributions to eysl
    303303                 if (sigma(jbi).lt.0) then
    304304                    eyslp = eyslp + area * sigma(jbi)
     
    309309                    asah = asah + area
    310310                 endif
    311 c Measure how much a residue is solvent accessible:
     311! Measure how much a residue is solvent accessible:
    312312                 jres = nursat(jbi)
    313313                 surfres(jres) = surfres(jres) + area
     
    332332     &               endwtime - startwtime, "s"
    333333      endif
    334 c
     334!
    335335       if (isolscl) then
    336336          nhx=0
     
    346346       return
    347347       end
    348 c *********************
     348! *********************
    349349      subroutine tessel
    350350      include 'INCL.H'
    351351      character lin*80
    352352
    353 c    Skipping comment lines, which begin with '!' 
     353!    Skipping comment lines, which begin with '!' 
    354354
    355355      read(20,'(a)') lin
     
    358358      end do
    359359
    360 c   The first non-comment line is the number of the surface points
     360!   The first non-comment line is the number of the surface points
    361361
    362362      read(lin(1:5),'(i5)') npnt
    363 c        write(*,'(a,i5)') 'the number of points---->',npnt
    364 
    365 c    Read the surface points   
     363!        write(*,'(a,i5)') 'the number of points---->',npnt
     364
     365!    Read the surface points   
    366366
    367367      do i=1,npnt
    368368         read(20,'(3f20.10)') spoint(i,1),spoint(i,2),spoint(i,3)
    369369         
    370 c        write(31,'(3f20.10)') spoint(i,1),spoint(i,2),spoint(i,3)
     370!        write(31,'(3f20.10)') spoint(i,1),spoint(i,2),spoint(i,3)
    371371      end do
    372372 
Note: See TracChangeset for help on using the changeset viewer.