source: EXAMPLES/minimization.f

Last change on this file 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: 2.1 KB
Line 
1!**************************************************************
2! Minimize the vacuum energy of Met-Enkaphalin using SMMP
3!
4!
5! Copyright 2003-2005 Frank Eisenmenger, U.H.E. Hansmann,
6! Shura Hayryan, Chin-Ku Hu
7! Copyright 2007 Frank Eisenmenger, U.H.E. Hansmann,
8! Jan H. Meinke, Sandipan Mohanty
9!
10! **************************************************************
11
12 program main
13
14 include "../INCL.H"
15
16!! Storage space for force-field library paths, seuence-file name, and variable-file name
17 character*80 libdir, seqfile, varfile
18!! Storage space for end groups
19 character grpn*4,grpc*4
20
21! =================================================== Energy setup
22
23! Directory for SMMP libraries
24! Change the following directory path to where you want to put SMMP
25! libraries of residues.
26 libdir='../SMMP/'
27
28!! Choose energy type with the following switch
29! 0 => ECEPP2 or ECEPP3 depending on the value of sh2
30! 1 => FLEX
31! 2 => Lund force field
32! 3 => ECEPP with Abagyan corrections
33!
34 ientyp = 0
35
36 sh2=.false. ! .true. for ECEPP/2; .false. for ECEPP3
37 epsd=.false. ! .true. for distance-dependent dielectric
38 ! permittivity
39
40 itysol= 0 ! 0: vacuum
41 ! >0: numerical solvent energy
42 ! <0: analytical solvent energy & gradients
43
44 call init_energy(libdir)
45
46! ================================================= Structure setup
47
48 grpn = 'nh2' ! N-terminal group
49 grpc = 'cooh'! C-terminal group
50
51 iabin = 1 ! =0: read from PDB-file
52 ! =1: ab Initio from sequence (& variables)
53 seqfile='enkefa.seq'
54 varfile='enkefa.var'
55 ntlml = 0
56
57 call init_molecule(iabin,grpn,grpc,seqfile,varfile)
58 imin = 1 ! Quasi-Newton 0 for conjugate gradient
59 maxit = 10000 ! maximum number of iterations in minimization
60 eps = 1.0d-9 ! requested precision
61 call minim(imin, maxit, eps)
62
63 end program main
64
Note: See TracBrowser for help on using the repository browser.