Changeset 32289cd for main.f


Ignore:
Timestamp:
11/19/09 11:29:41 (14 years ago)
Author:
baerbaer <baerbaer@…>
Branches:
master
Children:
38d77eb
Parents:
6650a56
Message:

Explicitly declare variables.

git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/smmp/trunk@33 26dc1dd8-5c4e-0410-9ffe-d298b4865968

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main.f

    r6650a56 r32289cd  
    44!
    55! Copyright 2003-2005  Frank Eisenmenger, U.H.E. Hansmann,
    6 !                      Shura Hayryan, Chin-Ku 
     6!                      Shura Hayryan, Chin-Ku
    77! Copyright 2007       Frank Eisenmenger, U.H.E. Hansmann,
    88!                      Jan H. Meinke, Sandipan Mohanty
     
    1616! $Id: main.f 334 2007-08-07 09:23:59Z meinke $
    1717! **************************************************************
    18      
     18
    1919      program main
    2020
    2121      include 'INCL.H'
    2222      include 'INCP.H'
     23      double precision eps, temp, e, energy
     24
     25      integer maxloglevel, logfileunit, iabin, imin, maxit, nequi
     26      integer nsweep, nmes, ncalls, nacalls
     27
    2328      common/updstats/ncalls(5),nacalls(5)
    2429      character*80 libdir, seqfile, varfile
     
    3237!            Directory for SMMP libraries
    3338!     Change the following directory path to where you want to put SMMP
    34 !     libraries of residues. 
     39!     libraries of residues.
    3540      libdir='./SMMP/'
    36      
     41
    3742!     Set the maximum log level. The larger the number the more detailed
    3843!     the log.
     
    4853      ientyp = 0
    4954!        0  => ECEPP2 or ECEPP3 depending on the value of sh2
    50 !        1  => FLEX 
     55!        1  => FLEX
    5156!        2  => Lund force field
    5257!        3  => ECEPP with Abagyan corrections
     
    7075      iabin = 1  ! =0: read from PDB-file
    7176                 ! =1: ab Initio from sequence (& variables)
    72       seqfile='EXAMPLES/enkefa.seq'
    73       varfile='EXAMPLES/enkefa.ann'
    74 !       varfile = ' '
    75      
     77      seqfile='polyq.seq'
     78!      seqfile='polyA.pdb'
     79      varfile='polyq.var'
     80       varfile = ' '
     81
    7682      ntlml = 0
    7783      write (*,*) 'Solvent: ', itysol
    7884!     Initialize random number generator.
    7985      call sgrnd(31433)
    80      
     86
    8187      if (itysol.eq.0.and.ientyp.eq.3) then
    8288         print *,'Can not use Abagyan entropic corrections without '
     
    8793      call init_molecule(iabin,grpn,grpc,seqfile,varfile)
    8894
    89 ! Decide if and when to use BGS, and initialize Lund data structures 
     95! Decide if and when to use BGS, and initialize Lund data structures
    9096      bgsprob=0.75   ! Prob for BGS, given that it is possible
    91 ! upchswitch= 0 => No BGS 1 => BGS with probability bgsprob 
    92 ! 2 => temperature dependent choice 
     97! upchswitch= 0 => No BGS 1 => BGS with probability bgsprob
     98! 2 => temperature dependent choice
    9399      upchswitch=1
    94100      rndord=.true.
     
    96102      if (ientyp.eq.2) call init_lundff
    97103      if (ientyp.eq.3) call init_abgn
    98      
     104
    99105
    100106! ========================================  Add your task down here
     
    103109      maxit = 15000 ! maximum number of iterations in minimization
    104110      eps = 1.0d-7 ! requested precision
    105       call minim(imin, maxit, eps)
    106       call outvar(0, ' ')
     111!      call minim(imin, maxit, eps)
     112!      call outvar(0, ' ')
    107113!     To do a canonical Monte Carlo simulation uncomment the lines below
    108 !       nequi = 100
    109 !       nsweep = 50000
    110 !       nmes = 10
    111 !       temp = 300.0
    112 !       lrand = .true.
     114       nequi = 100
     115       nsweep = 50000
     116       nmes = 10
     117       temp = 300.0
     118       lrand = .true.
     119       E = energy()
     120       write(*,*) E, eyel,eyvw,eyhb,eyvr
     121       call outpdb(1, "polyA.pdb")
    113122!      Canonical Monte Carlo
    114 !       call canon(nequi, nsweep, nmes, temp, lrand)
     123!        call canon(nequi, nsweep, nmes, temp, lrand)
    115124
    116125!      For simulated annealing uncomment the lines below
     
    118127!      tmax = 500.0
    119128!      call anneal(nequi, nsweep, nmes, tmax, tmin, lrand);
    120 ! ========================================  End of main     
     129! ========================================  End of main
    121130       end
Note: See TracChangeset for help on using the changeset viewer.