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

    r2ebb8b6 rbd2278d  
    1 c **************************************************************
    2 c
    3 c This file contains the subroutines: contacts,c_alfa,c_cont
    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: contacts,c_alfa,c_cont
     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 contacts(ncn,nham2,dham)
    1313
    14 c ..............................................................
    15 c
    16 c CALCULATES NUMBER OF CONTACTS IN GIVEN CONFORMATION, NUMBER OF
    17 c CONTACTS WHICH ARE THE SAME IN GIVEN AND REFERENCE ONFORMATION,
    18 c AND THE HAMMING DISTANCE BETWEEN GIVEN  CONFORMATION AND THE
    19 c REFERENCE CONFORMATIONa
    20 c
    21 c CALLS: c_cont
    22 c ..............................................................
     14! ..............................................................
     15!
     16! CALCULATES NUMBER OF CONTACTS IN GIVEN CONFORMATION, NUMBER OF
     17! CONTACTS WHICH ARE THE SAME IN GIVEN AND REFERENCE ONFORMATION,
     18! AND THE HAMMING DISTANCE BETWEEN GIVEN  CONFORMATION AND THE
     19! REFERENCE CONFORMATIONa
     20!
     21! CALLS: c_cont
     22! ..............................................................
    2323
    2424      include 'INCL.H'
     
    5555
    5656
    57 c *********************************
     57! *********************************
    5858      subroutine c_alfa(nmol,ncode)
    5959
    60 c ......................................................
    61 c    Calculates the indices of C-alpha atoms and
    62 c    stores in the array ind_alf(mxrs)
    63 c                       
    64 c    Usage: call c_alfa(nmol,ncode)
    65 c
    66 c           nmol - index of the molecule
    67 c           ncode ---> not in use in the current version
    68 c
    69 c    OUTPUT:  ind_alf(mxrs)
    70 c
    71 c CALLS: none
    72 c ......................................................
     60! ......................................................
     61!    Calculates the indices of C-alpha atoms and
     62!    stores in the array ind_alf(mxrs)
     63!                       
     64!    Usage: call c_alfa(nmol,ncode)
     65!
     66!           nmol - index of the molecule
     67!           ncode ---> not in use in the current version
     68!
     69!    OUTPUT:  ind_alf(mxrs)
     70!
     71! CALLS: none
     72! ......................................................
    7373
    7474      include 'INCL.H'
     
    7777        do ia=iatrs1(n_res),iatrs2(n_res) ! Over the atoms of res.
    7878
    79 c     Check for C_alpha atoms
     79!     Check for C_alpha atoms
    8080
    8181         if (nmat(ia)(1:2).eq.'ca') then
     
    8989      end
    9090
    91 c **********************************
     91! **********************************
    9292      subroutine c_cont (nmol,ncode)
    9393
    94 c..............................................................
    95 c  Calculates the matrix of contacts between aminoacid residues
    96 c  of the molecule "nmol" according to  L.Mirny and E.Domany,
    97 c  PROTEINS:Structure, Function, and Genetics 26:391-410 (1996)
    98 c               
    99 c  Two residues are in contact if their C_alpha atoms are
    100 c  closer than 8.5 Angstrem
    101 c
    102 c  Usage: call c_cont(nmol,ncode)
    103 c
    104 c       Where nmol is the index of the molecule (always 1, in the
    105 c       current version of SMM)
    106 c       ncode ---> not in use in the current version
    107 c
    108 c  IMPORTANT: Before the first call of this subroutine  "c_alfa"
    109 c          must be called to calculate the inices of C_alpha atoms.
    110 c          (ONLY ONCE)
    111 c
    112 c   OUTPUT: The output of this routine is the contact matrix
    113 c          ijcont(mxrs,mxrs)
    114 c
    115 c              ijcont(i,j)=0---> residues i and j are not in contact
    116 c              ijcont(i,j)=1---> ---------''----- are in contact
    117 c              ijcont(i,j)=2---> residues i and j are adjacent
    118 c
    119 c    NOTE:  Adjacent residues are always in contact (and therefore not
    120 c           counted)
    121 c
    122 c         Here "mxrs" is the maximum number of residues for SMM
    123 c         Obviously, this subroutine calculates only NxN part
    124 c         of that matrix, N -is the number of res. in "nmol"
    125 c
    126 c CALLS:  none
    127 c..............................................................
     94!..............................................................
     95!  Calculates the matrix of contacts between aminoacid residues
     96!  of the molecule "nmol" according to  L.Mirny and E.Domany,
     97!  PROTEINS:Structure, Function, and Genetics 26:391-410 (1996)
     98!               
     99!  Two residues are in contact if their C_alpha atoms are
     100!  closer than 8.5 Angstrem
     101!
     102!  Usage: call c_cont(nmol,ncode)
     103!
     104!       Where nmol is the index of the molecule (always 1, in the
     105!       current version of SMM)
     106!       ncode ---> not in use in the current version
     107!
     108!  IMPORTANT: Before the first call of this subroutine  "c_alfa"
     109!          must be called to calculate the inices of C_alpha atoms.
     110!          (ONLY ONCE)
     111!
     112!   OUTPUT: The output of this routine is the contact matrix
     113!          ijcont(mxrs,mxrs)
     114!
     115!              ijcont(i,j)=0---> residues i and j are not in contact
     116!              ijcont(i,j)=1---> ---------''----- are in contact
     117!              ijcont(i,j)=2---> residues i and j are adjacent
     118!
     119!    NOTE:  Adjacent residues are always in contact (and therefore not
     120!           counted)
     121!
     122!         Here "mxrs" is the maximum number of residues for SMM
     123!         Obviously, this subroutine calculates only NxN part
     124!         of that matrix, N -is the number of res. in "nmol"
     125!
     126! CALLS:  none
     127!..............................................................
    128128
    129129       include 'INCL.H'
     
    146146           do nr_j=nr_i+3,irsml2(nmol) ! Over res. j
    147147
    148 c             write(*,'(2i3)'),nr_i,nr_j
     148!             write(*,'(2i3)'),nr_i,nr_j
    149149
    150150              ic=0
     
    154154
    155155              rij2=(xat(ialf)-xat(jalf))**2
    156      #              +(yat(ialf)-yat(jalf))**2
    157      #                   + (zat(ialf)-zat(jalf))**2
     156     &              +(yat(ialf)-yat(jalf))**2
     157     &                   + (zat(ialf)-zat(jalf))**2
    158158              if(sqrt(rij2).lt.rcut) ic=1
    159159
    160 c             write(*,'(2i3)'),nr_i,nr_j
     160!             write(*,'(2i3)'),nr_i,nr_j
    161161
    162162              ijcont(nr_i,nr_j)=ic
Note: See TracChangeset for help on using the changeset viewer.