Changeset bd2278d for enysol.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.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     
     
    1414
    1515      include 'INCL.H'
    16 c --------------------------------------------------------------
    17 c
    18 c     Double Cubic Lattice algorithm for calculating the
    19 c     solvation energy of proteins using
    20 c     solvent accessible area method.
    21 c
    22 c     if nmol == 0 do solvation energy over all residues.
    23 c CALLS: nursat
    24 c
    25 c -------------------------------------------------------------
    26 c TODO: Check the solvent energy for multiple molecules     
     16! --------------------------------------------------------------
     17!
     18!     Double Cubic Lattice algorithm for calculating the
     19!     solvation energy of proteins using
     20!     solvent accessible area method.
     21!
     22!     if nmol == 0 do solvation energy over all residues.
     23! CALLS: nursat
     24!
     25! -------------------------------------------------------------
     26! TODO: Check the solvent energy for multiple molecules     
    2727      dimension numbox(mxat),inbox(mxbox+1),indsort(mxat),look(mxat)
    2828      dimension xyz(mxinbox,3),radb(mxinbox),radb2(mxinbox)
     
    9595      diamax=2.d0*rmax
    9696
    97 c  The sizes of the big box
     97!  The sizes of the big box
    9898
    9999      sizex=xmax-xmin
     
    101101      sizez=zmax-zmin
    102102
    103 c  How many maximal diameters in each size ?
     103!  How many maximal diameters in each size ?
    104104
    105105      ndx=sizex/diamax + 1
     
    107107      ndz=sizez/diamax + 1
    108108
    109 c We may need the number of quadratic boxes in (X,Y) plane
     109! We may need the number of quadratic boxes in (X,Y) plane
    110110
    111111      nqxy=ndx*ndy
    112112
    113 c   The number of cubic boxes of the size "diamax"
     113!   The number of cubic boxes of the size "diamax"
    114114
    115115      ncbox=nqxy*ndz
     
    119119      end if
    120120       
    121 c Let us shift the borders to home all boxes
     121! Let us shift the borders to home all boxes
    122122
    123123      shiftx=(dble(ndx)*diamax-sizex)/2.d0
     
    131131      zmax=zmax+shiftz
    132132
    133 c Finding the box of each atom
     133! Finding the box of each atom
    134134
    135135      do j=nlow,nup
     
    153153      end do
    154154
    155 c  Summation over the boxes
     155!  Summation over the boxes
    156156
    157157      do i=1,ncbox
     
    160160         
    161161       
    162 c   Sorting the atoms by the their box numbers
     162!   Sorting the atoms by the their box numbers
    163163
    164164      do i=nlow,nup
     
    169169      end do   
    170170         
    171 c Getting started
     171! Getting started
    172172
    173173      do iz=0,ndz-1 ! Over the boxes along Z-axis
     
    177177           ibox=ix+iy*ndx+iz*nqxy + 1
    178178
    179 c  Does this box contain atoms ?
     179!  Does this box contain atoms ?
    180180
    181181           lbn=inbox(ibox+1)-inbox(ibox)
     
    189189             nez=min(iz+1,ndz-1)
    190190                     
    191 c  Atoms in the boxes around
     191!  Atoms in the boxes around
    192192
    193193             jcnt=1
     
    221221                     dr=1.0d0+akrad
    222222                     dr=dr*dr
    223 cc if contact
     223!c if contact
    224224                     if(dd.le.dr) then
    225225                       nnei=nnei+1
     
    232232                   end if
    233233                 end do
    234 cc
     234!c
    235235                  do il=1,npnt
    236236                     surfc(il)=.false.
    237237                  end do
    238238
    239 c  Check overlap
     239!  Check overlap
    240240
    241241                  lst=1
     
    279279                 area   = sdr*dble(icount)
    280280                 volume = sdr/3.0d0*(trad*dble(icount)
    281      #                               +(xat(jbi)-avr_x)*dx
    282      #                               +(yat(jbi)-avr_y)*dy
    283      #                               +(zat(jbi)-avr_z)*dz)
     281     &                               +(xat(jbi)-avr_x)*dx
     282     &                               +(yat(jbi)-avr_y)*dy
     283     &                               +(zat(jbi)-avr_z)*dz)
    284284
    285285                 asa=asa+area
    286286                 vdvol=vdvol+volume
    287287                 eysl=eysl+area*sigma(jbi)
    288 c Separate hydrophilic (h) and hyrdophobic (p) contributions to eysl
     288! Separate hydrophilic (h) and hyrdophobic (p) contributions to eysl
    289289                 if (sigma(jbi).lt.0) then
    290290                    eyslp = eyslp + area * sigma(jbi)
     
    295295                    asah = asah + area
    296296                 endif
    297 c Measure how much a residue is solvent accessible:
     297! Measure how much a residue is solvent accessible:
    298298                 jres = nursat(jbi)
    299299                 surfres(jres) = surfres(jres) + area
     
    305305       end do
    306306
    307 c
     307!
    308308       if (isolscl) then
    309309          nhx=0
     
    319319       return
    320320       end
    321 c *********************
     321! *********************
    322322      subroutine tessel
    323323      include 'INCL.H'
    324324      character lin*80
    325325
    326 c    Skipping comment lines, which begin with '!' 
    327 
     326!    Skipping comment lines, which begin with '!' 
    328327      read(20,'(a)') lin
    329328      do while(lin(1:1).eq.'!')
     
    331330      end do
    332331
    333 c   The first non-comment line is the number of the surface points
     332!   The first non-comment line is the number of the surface points
    334333
    335334      read(lin(1:5),'(i5)') npnt
    336 c        write(*,'(a,i5)') 'the number of points---->',npnt
    337 
    338 c    Read the surface points   
     335!       write(*,'(a,i5)') 'the number of points---->',npnt
     336
     337!    Read the surface points   
    339338
    340339      do i=1,npnt
    341340         read(20,'(3f20.10)') spoint(i,1),spoint(i,2),spoint(i,3)
    342          
    343 c        write(31,'(3f20.10)') spoint(i,1),spoint(i,2),spoint(i,3)
     341!          write(31,'(3f20.10)') spoint(i,1),spoint(i,2),spoint(i,3)
    344342      end do
    345343 
Note: See TracChangeset for help on using the changeset viewer.