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

    r2ebb8b6 rbd2278d  
    1 c **************************************************************
    2 c
    3 c This file contains the subroutines: canon,can_weight
    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: canon,can_weight
     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  canon(nequi, nswp, nmes, temp, lrand)
    13 C -----------------------------------------------------------------
    14 C PURPOSE: CANONICAL SIMULATION OF PROTEINS USING METROPOLIS UPDATES
    15 C
    16 C CALLS:  addang,energy,metropolis,hbond,helix,outvar,outpdb,rgyr
    17 C
    18 C-------------------------------------------------------------------
     13! -----------------------------------------------------------------
     14! PURPOSE: CANONICAL SIMULATION OF PROTEINS USING METROPOLIS UPDATES
     15!
     16! CALLS:  addang,energy,metropolis,hbond,helix,outvar,outpdb,rgyr
     17!
     18!-------------------------------------------------------------------
    1919      include 'INCL.H'
    2020
    21 cf2py intent(in) nequi
    22 cf2py intent(in) nswp
    23 cf2py intent(in) nmes
    24 cf2py intent(in) temp
    25 cf2py logical optional, intent(in):: lrand = 1
     21!f2py intent(in) nequi
     22!f2py intent(in) nswp
     23!f2py intent(in) nmes
     24!f2py intent(in) temp
     25!f2py logical optional, intent(in):: lrand = 1
    2626
    27 c     external rand
     27!     external rand
    2828      external can_weight
    2929     
    3030      logical lrand
    31 c      parameter(lrand=.false.)
    32 c      parameter(nequi=10, nswp=1000,nmes=10)
    33 c      parameter(temp=300.0)
    34 C     lrand=.true.: creates random start configuration
    35 C     nequi: Number of sweeps for equilibrisation of system
     31!      parameter(lrand=.false.)
     32!      parameter(nequi=10, nswp=1000,nmes=10)
     33!      parameter(temp=300.0)
     34!     lrand=.true.: creates random start configuration
     35!     nequi: Number of sweeps for equilibrisation of system
    3636      integer nequi
    37 C     nswp:  Number of sweeps for simulation run
     37!     nswp:  Number of sweeps for simulation run
    3838      integer nswp
    39 c     nmes:  Number of sweeps between measurments
     39!     nmes:  Number of sweeps between measurments
    4040      integer nmes
    41 C     temp:  Temperature of simulation
     41!     temp:  Temperature of simulation
    4242      double precision temp
    43 C
     43!
    4444!      common/bet/beta
    4545
    4646      character*80 file
    4747
    48 c     Define files for output:
     48!     Define files for output:
    4949      open(13,file='time.d')
    5050
     
    5252      beta=1.0/ ( temp * 1.98773d-3 )
    5353
    54 c _________________________________ random start
     54! _________________________________ random start
    5555      if(lrand) then
    5656       do i=1,nvr
     
    6565      write (*,'(a,e12.5,/)')  'energy of start configuration:',eol
    6666
    67 C Write start configuration in pdb-format into file
     67! Write start configuration in pdb-format into file
    6868      call outpdb(0,'start.pdb')
    6969
    70 c =====================Equilibration by  Metropolis
     70! =====================Equilibration by  Metropolis
    7171      acz = 0.0d0
    7272      do nsw=1,nequi
     
    7575      write(*,*) 'Energy after equilibration:',eol
    7676
    77 C======================Simulation in canonical ensemble
     77!======================Simulation in canonical ensemble
    7878      acz = 0.0d0
    7979      do nsw=0,nswp
    8080        call metropolis(eol,acz,can_weight)
    81 c
     81!
    8282        if(mod(nsw,nmes).eq.0) then
    83 C Measure radius of gyration and end-to-end distance
    84 C rgy: radius of gyration
    85 C ee:  end-to-end distance
     83! Measure radius of gyration and end-to-end distance
     84! rgy: radius of gyration
     85! ee:  end-to-end distance
    8686         call rgyr(1,rgy,ee)
    87 C Measure helicity
    88 C nhel: number of helical residues
    89 c mhel: number of helical segments
    90 c nbet: number of sheet-like residues
    91 c mbet: number of sheet-like segments
     87! Measure helicity
     88! nhel: number of helical residues
     89! mhel: number of helical segments
     90! nbet: number of sheet-like residues
     91! mbet: number of sheet-like segments
    9292         call helix(nhel,mhel,nbet,mbet)
    93 C Measure number of hydrogen bonds (mhb)
     93! Measure number of hydrogen bonds (mhb)
    9494        do i=1,ntlml
    9595         call hbond(i,mhb,0)
    9696        end do
    97 C Write down information on actual conformation
     97! Write down information on actual conformation
    9898         write(13,'(i5,2f12.3,5i7)')  nsw,  eol, rgy,
    9999     &                              nhel,mhel,nbet,mbet,mhb
    100100        end if
    101 C
     101!
    102102      end do
    103103
     
    105105      write(*,*) 'acceptance rate:',acz
    106106      write(*,*)
    107 c ------------ Output Dihedreals of final configuration
     107! ------------ Output Dihedreals of final configuration
    108108      write(*,*) 'last energy',eol
    109109      call outvar(0,'lastconf.var')
    110 C     Output final conformation as pdb-file
     110!     Output final conformation as pdb-file
    111111      call outpdb(0,'final.pdb')
    112112
     
    114114      close(12)
    115115      close(13)
    116 c =====================
     116! =====================
    117117
    118118
    119119       end
    120120
    121 c ********************************************************
     121! ********************************************************
    122122      real*8 function can_weight(x)
    123 c
    124 c CALLS: none
    125 c
     123!
     124! CALLS: none
     125!
    126126
    127127      implicit real*8 (a-h,o-z)
Note: See TracChangeset for help on using the changeset viewer.