source: main.f@ bd2278d

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

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

  • Property mode set to 100644
File size: 3.8 KB
Line 
1! **************************************************************
2! This file contains the: main (SINGLE PROCESSOR JOBS ONLY,
3! FOR PARALLEL JOBS USE pmain)
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! CALLS: init_energy,init_molecule
11! CALLS TASK SUBROUTINE: anneal,canon,elp,minim,mulcan_par,
12! mulcan_sim,partem_s, or regul
13! CAN ALSO CALL MEASUREMENT ROUTINES: cnteny,contacts,helix,hbond,
14! outpdb,outvar,rgyr,
15! rmsinit and rsmdfun,zimmer
16! $Id: main.f 334 2007-08-07 09:23:59Z meinke $
17! **************************************************************
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
28! =================================================== Energy setup
29
30! Directory for SMMP libraries
31! Change the following directory path to where you want to put SMMP
32! libraries of residues.
33 libdir='./SMMP/'
34
35! The switch in the following line is now not used.
36 flex=.false. ! .true. for Flex / .false. for ECEPP
37
38! Choose energy type with the following switch instead ...
39 ientyp = 0
40! 0 => ECEPP2 or ECEPP3 depending on the value of sh2
41! 1 => FLEX
42! 2 => Lund force field
43! 3 => ECEPP with Abagyan corrections
44!
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
56! ================================================= 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
69! 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
80! Decide if and when to use BGS, and initialize Lund data structures
81 bgsprob=0.75 ! Prob for BGS, given that it is possible
82! upchswitch= 0 => No BGS 1 => BGS with probability bgsprob
83! 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
91! ======================================== 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)
97! 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.
103! Canonical Monte Carlo
104! call canon(nequi, nsweep, nmes, temp, lrand)
105
106! For simulated annealing uncomment the lines below
107! tmin = 200.0
108! tmax = 500.0
109! call anneal(nequi, nsweep, nmes, tmax, tmin, lrand);
110! ======================================== End of main
111 end
Note: See TracBrowser for help on using the repository browser.