Adam 7/30/2014
[unres.git] / source / unres / src_MD-DFA-restraints / COMMON.MD
1       double precision  gcart, gxcart, gradcag,gradxag
2       common /mdgrad/ gcart(3,0:MAXRES), gxcart(3,0:MAXRES),
3      & gradcag(3,MAXRES),gradxag(3,MAXRES)
4        integer dimen,dimen1, dimen3, ifrag(2,50,maxprocs/20), 
5      &                       ipair(2,100,maxprocs/20),iset,
6      &                       mset(maxprocs/20),nset
7        double precision IP,ISC(ntyp+1),mp,
8      & msc(ntyp+1),d_t_work(MAXRES6),
9      & d_t_work_new(MAXRES6),d_t(3,0:MAXRES2),d_t_new(3,0:MAXRES2),
10      & d_af_work(MAXRES6),d_as_work(MAXRES6),
11      & d_t_old(3,0:MAXRES2),d_a_old(3,0:MAXRES2),d_a_short(3,0:MAXRES2),
12      & Gmat(MAXRES2,MAXRES2),Ginv(MAXRES2,MAXRES2),A(MAXRES2,MAXRES2),
13      & d_a(3,0:MAXRES2),d_a_work(6*MAXRES),kinetic_force(MAXRES6),
14      & Gsqrp(MAXRES2,MAXRES2),Gsqrm(MAXRES2,MAXRES2),
15      & vtot(MAXRES2),Gvec(maxres2,maxres2),Geigen(maxres2)
16
17        real*8 odl(max_template,maxdim),sigma_odl(max_template,maxdim),
18      &    dih(max_template,maxres),sigma_dih(max_template,maxres)
19
20        integer ires_homo(maxdim),jres_homo(maxdim)
21
22        double precision v_ini,d_time,d_time0,t_bath,tau_bath,
23      & EK,potE,potEcomp(0:n_ene+4),totE,totT,amax,kinetic_T,dvmax,damax,
24      & edriftmax,
25      & eq_time,wfrag(50,maxprocs/20),wpair(100,maxprocs/20),
26      & qfrag(50),qpair(100),
27      & qinfrag(50,maxprocs/20),qinpair(100,maxprocs/20),
28      & Ucdfrag,Ucdpair,dUdconst(3,0:MAXRES),Uconst,
29      & dUdxconst(3,0:MAXRES),dqwol(3,0:MAXRES),dxqwol(3,0:MAXRES),
30      & utheta(maxfrag_back),ugamma(maxfrag_back),uscdiff(maxfrag_back),
31      & dutheta(maxres),dugamma(maxres),duscdiff(3,maxres),
32      & duscdiffx(3,maxres),wfrag_back(3,maxfrag_back,maxprocs/20),
33      & uconst_back
34       integer n_timestep,ntwx,ntwe,lang,count_reset_moment,
35      & count_reset_vel,reset_fricmat,nfrag,npair,nfrag_back,
36      & ifrag_back(3,maxfrag_back,maxprocs/20),ntime_split,ntime_split0,
37      & maxtime_split,lim_odl,lim_dih,link_start_homo,link_end_homo,
38      & idihconstr_start_homo,idihconstr_end_homo
39       integer nresn,nyosh,nnos
40       double precision glogs,qmass,vlogs,xlogs
41       logical large,print_compon,tbf,rest,reset_moment,reset_vel,
42      & surfarea,rattle,usampl,mdpdb,RESPA,tnp,tnp1,tnh,xiresp
43       integer igmult_start,igmult_end,my_ng_count,ng_start,ng_counts,
44      & nginv_start,nginv_counts,myginv_ng_count
45       common /back_constr/ uconst_back,utheta,ugamma,uscdiff,
46      & dutheta,dugamma,duscdiff,duscdiffx,
47      & wfrag_back,nfrag_back,ifrag_back
48        common /homrestr/ odl,dih,sigma_dih,sigma_odl,
49      & lim_odl,lim_dih,ires_homo,jres_homo,link_start_homo,
50      & link_end_homo,idihconstr_start_homo,idihconstr_end_homo
51       common /qmeas/ qfrag,qpair,qinfrag,qinpair,wfrag,wpair,eq_time,
52      & Ucdfrag,Ucdpair,dUdconst,dUdxconst,dqwol,dxqwol,Uconst,
53      & iset,mset,nset,usampl,ifrag,ipair,npair,nfrag
54       common /mdpar/ v_ini,d_time,d_time0,scal_fric,
55      & t_bath,tau_bath,dvmax,damax,n_timestep,mdpdb,
56      & ntime_split,ntime_split0,maxtime_split,
57      & ntwx,ntwe,large,print_compon,tbf,rest,tnp,tnp1,tnh
58       common /MDcalc/ totT,totE,potE,potEcomp,EK,amax,edriftmax,
59      & kinetic_T
60       common /lagrange/ d_t,d_t_old,d_t_new,d_t_work,
61      & d_t_work_new,d_a,d_a_old,d_a_work,d_af_work,d_as_work,d_a_short,
62      & kinetic_force,
63      & A,Ginv,Gmat,Gvec,Geigen,Gsqrp,Gsqrm,
64      & vtot,dimen,dimen1,dimen3,lang,
65      & reset_moment,reset_vel,count_reset_moment,count_reset_vel,
66      & rattle,RESPA
67       common /inertia/ IP,ISC,MP,MSC
68       double precision scal_fric,rwat,etawat,gamp,
69      & gamsc(ntyp),stdfp,stdfsc(ntyp),stdforcp(MAXRES),
70      & stdforcsc(MAXRES),pstok,restok(ntyp+1),cPoise,Rb
71       common /langevin/ pstok,restok,gamp,gamsc,
72      & stdfp,stdfsc,stdforcp,stdforcsc,rwat,etawat,cPoise,Rb,surfarea,
73      & reset_fricmat
74       common /mdpmpi/ igmult_start,igmult_end,my_ng_count,
75      & myginv_ng_count,
76      & ng_start(0:MaxProcs-1),ng_counts(0:MaxProcs-1),
77      & nginv_start(0:MaxProcs),nginv_counts(0:MaxProcs-1)
78       double precision pi_np,pistar,s_np,s12_np,Q_np,E_old,H0,E_long,
79      & sold_np,d_t_half,Csplit,hhh
80       common /nosepoincare/ pi_np,pistar,s_np,s12_np,Q_np,E_old,H0,
81      & E_long,sold_np,d_t_half(3,0:MAXRES2),Csplit,hhh
82       common /nosehoover/ glogs(maxmnh),qmass(maxmnh),
83      &                    vlogs(maxmnh),xlogs(maxmnh),
84      &                    nresn,nyosh,nnos,xiresp
85       integer hmc,hmc_acc
86       double precision dc_hmc,hmc_etot,totThmc
87       common /hmc_md/ dc_hmc(3,0:maxres2),hmc_etot,totThmc,hmc,hmc_acc