********************************************************************************
* Settings for the program of united-residue peptide simulation in real space  *
*                                                                              *
*                -------  As of 5/10/95 -----------                            *
*                                                                              *
********************************************************************************
      implicit real*8 (a-h,o-z)
C Max. number of processors.
      parameter (maxprocs=8)
C Max. number of fine-grain processors
      parameter (max_fg_procs=maxprocs)
C Max. number of coarse-grain processors
      parameter (max_cg_procs=maxprocs)
C Max. number of AA residues
      parameter (maxres=100)
C Appr. max. number of interaction sites
      parameter (maxres2=2*maxres)
C Max. number of variables
      parameter (maxvar=4*maxres)
C Max. number of groups of interactions that a given SC is involved in
      parameter (maxint_gr=2)
C Max. number of derivatives of virtual-bond and side-chain vectors in theta
C or phi.
      parameter (maxdim=(maxres-1)*(maxres-2)/2)
C Max. number of SC contacts
      parameter (maxcont=12*maxres)
C Max. number of contacts per residue
      parameter (maxconts=maxres)
C Number of AA types (at present only natural AA's will be handled
      parameter (ntyp=20,ntyp1=ntyp+1)
C Max. number of types of dihedral angles & multiplicity of torsional barriers
      parameter (maxtor=3,maxterm=6)
C Max. number of lobes in SC distribution
      parameter (maxlob=4)
C Max. number of S-S bridges
      parameter (maxss=20)
C Max. number of dihedral angle constraints
      parameter (maxdih_constr=maxres)
C Max. number of patterns in the pattern database
      parameter (maxseq=1000)
C Max. number of residues in a peptide in the database
      parameter (maxres_base=1000)
C Max. number of threading attempts
      parameter (maxthread=2000)
C Max. number of move types in MCM
      parameter (maxmovetype=4)
C Max. number of stored confs. in MC/MCM simulation
      parameter (maxsave=2000)
C Max. number of energy intervals
      parameter (max_ene=1000)
C Max. number of conformations in Master's cache array
      parameter (max_cache=100)
C Max. number of conformations in the pool
      parameter (max_pool=1000)
C Number of energy components
      parameter (n_ene=11,n_ene2=2*n_ene)
C Number of threads in deformation
      integer max_thread,max_thread2
      parameter (max_thread=40,max_thread2=2*max_thread)     
C Number of steps in DSM
      integer max_step
      parameter (max_step=150)
C Number of structures to compare at t=0
      integer max_threadss,max_threadss2
      parameter (max_threadss=80,max_threadss2=2*max_threadss)
C Maxmimum number of angles per residue
      parameter (mxang=4)
C Maximum number of groups of angles
      parameter (mxgr=2*maxres)
C Maximum number of chains
      parameter (mxch=1)
C Maximum number of generated conformations
      parameter (mxio=1000)
