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

    r2ebb8b6 rbd2278d  
    1 c **************************************************************
    2 c
    3 c This file contains the subroutines: init_molecule
    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 **************************************************************
    11 c FIXME: Data in varfile determines which molecule is changed.
     1! **************************************************************
     2!
     3! This file contains the subroutines: init_molecule
     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! **************************************************************
     11! FIXME: Data in varfile determines which molecule is changed.
    1212
    1313      subroutine init_molecule(iabin,grpn,grpc,seqfile,varfile)
    1414
    15 c ----------------------------------------------------------
    16 c PURPOSE: construct starting structure of molecule(s)
    17 c
    18 c          iabin = 1  : ab Initio using sequence &
    19 c                       variables given in input files
    20 c          iabin != 1 : sequence, variable information
    21 c                       from PDB-file
    22 c
    23 c          grpn:        N-terminal group
    24 c          grpc:        C-terminal group
    25 c
    26 c CALLS:   addend,bldmol,c_alfa,getmol,iendst, mklist, nursvr,
    27 C          pdbread,pdbvars,redseq,redvar,setmvs
    28 C
    29 c ----------------------------------------------------------
     15! ----------------------------------------------------------
     16! PURPOSE: construct starting structure of molecule(s)
     17!
     18!          iabin = 1  : ab Initio using sequence &
     19!                       variables given in input files
     20!          iabin != 1 : sequence, variable information
     21!                       from PDB-file
     22!
     23!          grpn:        N-terminal group
     24!          grpc:        C-terminal group
     25!
     26! CALLS:   addend,bldmol,c_alfa,getmol,iendst, mklist, nursvr,
     27!          pdbread,pdbvars,redseq,redvar,setmvs
     28!
     29! ----------------------------------------------------------
    3030
    3131      include 'INCL.H'
    3232      include 'INCP.H'
    3333
    34 cf2py character*80 optional, intent(in) :: seqfile = ' '
    35 cf2py character*80 optional, intent(in) :: varfile = ' '
     34!f2py character*80 optional, intent(in) :: seqfile = ' '
     35!f2py character*80 optional, intent(in) :: varfile = ' '
    3636     
    3737      character grpn*4,grpc*4
     
    4747      if (iabin.eq.1) then 
    4848         
    49 c     ----------------------------------------- get sequence for molecule(s)
     49!     ----------------------------------------- get sequence for molecule(s)
    5050         lunseq=11
    5151         if (ntlml.gt.0) then
     
    6464         write (*,*) 'File with sequence is ', seqfil(1:iendst(seqfil))
    6565         
    66 c     --------------------------------- read & assemble data from libraries
    67 c     initial coordinates, interaction lists
     66!     --------------------------------- read & assemble data from libraries
     67!     initial coordinates, interaction lists
    6868         
    6969         ntl = ntlml
     
    8585         enddo
    8686         
    87 c     --------------------------- Read the initial conformation if necessary
     87!     --------------------------- Read the initial conformation if necessary
    8888         if(readFromStdin) then
    8989            write (*,'(a,$)') ' file with VARIABLES:'
    90 c     
     90!     
    9191            varfil=' '
    9292            read(*,'(a)',end=2,err=2) varfil
     
    105105 2       write(*,*) ' '
    106106         
    107 c     -------------------- get: nvr,idvr, vlvr, olvlvr
     107!     -------------------- get: nvr,idvr, vlvr, olvlvr
    108108         nvr = 0
    109109         do i=1,ivrml1(ntlml)+nvrml(ntlml)-1
     
    149149      endif
    150150     
    151 c     -------------------------- set var. amplitudes for simulations
     151!     -------------------------- set var. amplitudes for simulations
    152152     
    153153      do i=1,ivrml1(ntlml)+nvrml(ntlml)-1
     
    162162            if (                         navr(1:2).eq.'om'
    163163           
    164      #     .or.nars(1:3).eq.'arg'.and.(navr(1:2).eq.'x5'
    165      #           .or.navr(1:2).eq.'x6')
    166            
    167      #           .or.(nars(1:3).eq.'asn'.or.nars(1:3).eq.'asp')
    168      #           .and.navr(1:2).eq.'x3'
    169            
    170      #           .or.(nars(1:3).eq.'gln'.or.nars(1:3).eq.'glu')
    171      #           .and.navr(1:2).eq.'x4'
    172            
    173      #           ) then
    174            
    175 c     axvr(i) = pi/9.d0  ! 20 deg.
     164     &     .or.nars(1:3).eq.'arg'.and.(navr(1:2).eq.'x5'
     165     &           .or.navr(1:2).eq.'x6')
     166           
     167     &           .or.(nars(1:3).eq.'asn'.or.nars(1:3).eq.'asp')
     168     &           .and.navr(1:2).eq.'x3'
     169           
     170     &           .or.(nars(1:3).eq.'gln'.or.nars(1:3).eq.'glu')
     171     &           .and.navr(1:2).eq.'x4'
     172           
     173     &           ) then
     174           
     175!     axvr(i) = pi/9.d0  ! 20 deg.
    176176            axvr(i) = pi2       ! Trying out 360 deg. for these as well
    177177           
     
    186186      enddo                     ! vars.
    187187     
    188 c     --------------------- initialize solvation pars. if necessary
     188!     --------------------- initialize solvation pars. if necessary
    189189
    190190      if (itysol.ne.0) then
Note: See TracChangeset for help on using the changeset viewer.