source: main.f@ e40e335

Last change on this file since e40e335 was e40e335, checked in by baerbaer <baerbaer@…>, 16 years ago

Initial import to BerliOS corresponding to 3.0.4

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

  • Property mode set to 100644
File size: 3.8 KB
Line 
1c **************************************************************
2c This file contains the: main (SINGLE PROCESSOR JOBS ONLY,
3C FOR PARALLEL JOBS USE pmain)
4c
5c Copyright 2003-2005 Frank Eisenmenger, U.H.E. Hansmann,
6c Shura Hayryan, Chin-Ku
7c Copyright 2007 Frank Eisenmenger, U.H.E. Hansmann,
8c Jan H. Meinke, Sandipan Mohanty
9c
10C CALLS: init_energy,init_molecule
11C CALLS TASK SUBROUTINE: anneal,canon,elp,minim,mulcan_par,
12c mulcan_sim,partem_s, or regul
13C CAN ALSO CALL MEASUREMENT ROUTINES: cnteny,contacts,helix,hbond,
14C outpdb,outvar,rgyr,
15C rmsinit and rsmdfun,zimmer
16c $Id: main.f 334 2007-08-07 09:23:59Z meinke $
17c **************************************************************
18
19 program main
20
21 include 'INCL.H'
22 include 'INCP.H'
23 common/updstats/ncalls(5),nacalls(5)
24 character*80 libdir, seqfile, varfile
25 character grpn*4,grpc*4
26 logical lrand,bgsposs
27
28c =================================================== Energy setup
29
30c Directory for SMMP libraries
31c Change the following directory path to where you want to put SMMP
32c libraries of residues.
33 libdir='./SMMP/'
34
35c The switch in the following line is now not used.
36 flex=.false. ! .true. for Flex / .false. for ECEPP
37
38c Choose energy type with the following switch instead ...
39 ientyp = 0
40c 0 => ECEPP2 or ECEPP3 depending on the value of sh2
41c 1 => FLEX
42c 2 => Lund force field
43c 3 => ECEPP with Abagyan corrections
44c
45
46 sh2=.false. ! .true. for ECEPP/2; .false. for ECEPP3
47 epsd=.false. ! .true. for distance-dependent dielectric
48 ! permittivity
49
50 itysol= 0 ! 0: vacuum
51 ! >0: numerical solvent energy
52 ! <0: analytical solvent energy & gradients
53
54 call init_energy(libdir)
55
56c ================================================= Structure setup
57
58 grpn = 'nh2' ! N-terminal group
59 grpc = 'cooh'! C-terminal group
60
61 iabin = 1 ! =0: read from PDB-file
62 ! =1: ab Initio from sequence (& variables)
63 seqfile='EXAMPLES/enkefa.seq'
64 varfile='EXAMPLES/enkefa.var'
65! varfile = ' '
66
67 ntlml = 0
68 write (*,*) 'Solvent: ', itysol
69c Initialize random number generator.
70 call sgrnd(31433)
71
72 if (itysol.eq.0.and.ientyp.eq.3) then
73 print *,'Can not use Abagyan entropic corrections without '
74 print *,'solvent term. '
75 stop
76 endif
77
78 call init_molecule(iabin,grpn,grpc,seqfile,varfile)
79
80c Decide if and when to use BGS, and initialize Lund data structures
81 bgsprob=0.75 ! Prob for BGS, given that it is possible
82c upchswitch= 0 => No BGS 1 => BGS with probability bgsprob
83c 2 => temperature dependent choice
84 upchswitch=1
85 rndord=.true.
86 call init_lund
87 if (ientyp.eq.2) call init_lundff
88 if (ientyp.eq.3) call init_abgn
89
90
91c ======================================== Add your task down here
92
93 imin = 1 ! Quasi-Newton
94 maxit = 15000 ! maximum number of iterations in minimization
95 eps = 1.0d-7 ! requested precision
96 call minim(imin, maxit, eps)
97c To do a canonical Monte Carlo simulation uncomment the lines below
98! nequi = 100
99! nsweep = 50000
100! nmes = 10
101! temp = 300.0
102! lrand = .true.
103c Canonical Monte Carlo
104! call canon(nequi, nsweep, nmes, temp, lrand)
105
106c For simulated annealing uncomment the lines below
107! tmin = 200.0
108! tmax = 500.0
109! call anneal(nequi, nsweep, nmes, tmax, tmin, lrand);
110c ======================================== End of main
111 end
Note: See TracBrowser for help on using the repository browser.