- Timestamp:
- 11/19/09 11:29:41 (14 years ago)
- Branches:
- master
- Children:
- 38d77eb
- Parents:
- 6650a56
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main.f
r6650a56 r32289cd 4 4 ! 5 5 ! Copyright 2003-2005 Frank Eisenmenger, U.H.E. Hansmann, 6 ! Shura Hayryan, Chin-Ku 6 ! Shura Hayryan, Chin-Ku 7 7 ! Copyright 2007 Frank Eisenmenger, U.H.E. Hansmann, 8 8 ! Jan H. Meinke, Sandipan Mohanty … … 16 16 ! $Id: main.f 334 2007-08-07 09:23:59Z meinke $ 17 17 ! ************************************************************** 18 18 19 19 program main 20 20 21 21 include 'INCL.H' 22 22 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 23 28 common/updstats/ncalls(5),nacalls(5) 24 29 character*80 libdir, seqfile, varfile … … 32 37 ! Directory for SMMP libraries 33 38 ! Change the following directory path to where you want to put SMMP 34 ! libraries of residues. 39 ! libraries of residues. 35 40 libdir='./SMMP/' 36 41 37 42 ! Set the maximum log level. The larger the number the more detailed 38 43 ! the log. … … 48 53 ientyp = 0 49 54 ! 0 => ECEPP2 or ECEPP3 depending on the value of sh2 50 ! 1 => FLEX 55 ! 1 => FLEX 51 56 ! 2 => Lund force field 52 57 ! 3 => ECEPP with Abagyan corrections … … 70 75 iabin = 1 ! =0: read from PDB-file 71 76 ! =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 76 82 ntlml = 0 77 83 write (*,*) 'Solvent: ', itysol 78 84 ! Initialize random number generator. 79 85 call sgrnd(31433) 80 86 81 87 if (itysol.eq.0.and.ientyp.eq.3) then 82 88 print *,'Can not use Abagyan entropic corrections without ' … … 87 93 call init_molecule(iabin,grpn,grpc,seqfile,varfile) 88 94 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 90 96 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 93 99 upchswitch=1 94 100 rndord=.true. … … 96 102 if (ientyp.eq.2) call init_lundff 97 103 if (ientyp.eq.3) call init_abgn 98 104 99 105 100 106 ! ======================================== Add your task down here … … 103 109 maxit = 15000 ! maximum number of iterations in minimization 104 110 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, ' ') 107 113 ! 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") 113 122 ! Canonical Monte Carlo 114 ! call canon(nequi, nsweep, nmes, temp, lrand)123 ! call canon(nequi, nsweep, nmes, temp, lrand) 115 124 116 125 ! For simulated annealing uncomment the lines below … … 118 127 ! tmax = 500.0 119 128 ! call anneal(nequi, nsweep, nmes, tmax, tmin, lrand); 120 ! ======================================== End of main 129 ! ======================================== End of main 121 130 end
Note:
See TracChangeset
for help on using the changeset viewer.