1 subroutine store_parm(iparm)
3 C Store parameters of set IPARM
4 C valence angles and the side chains and energy parameters.
8 include 'DIMENSIONS.ZSCOPT'
9 include 'DIMENSIONS.FREE'
10 include 'COMMON.IOUNITS'
11 include 'COMMON.CHAIN'
12 include 'COMMON.INTERACT'
14 include 'COMMON.LOCAL'
15 include 'COMMON.TORSION'
16 include 'COMMON.FFIELD'
17 include 'COMMON.NAMES'
18 include 'COMMON.SBRIDGE'
19 include 'COMMON.SCROT'
20 include 'COMMON.SCCOR'
21 include 'COMMON.ALLPARM'
22 integer i,j,k,l,m,mm,iparm
29 ww_all(5,iparm)=wcorr5
30 ww_all(6,iparm)=wcorr6
31 ww_all(7,iparm)=wel_loc
32 ww_all(8,iparm)=wturn3
33 ww_all(9,iparm)=wturn4
34 ww_all(10,iparm)=wturn6
36 ww_all(12,iparm)=wscloc
38 ww_all(14,iparm)=wtor_d
39 ww_all(15,iparm)=wstrain
40 ww_all(16,iparm)=wvdwpp
41 ww_all(17,iparm)=wbond
42 ww_all(19,iparm)=wsccor
43 c Store bond parameters
44 vbldp0_all(iparm)=vbldp0
47 nbondterm_all(i,iparm)=nbondterm(i)
49 vbldsc0_all(j,i,iparm)=vbldsc0(j,i)
50 aksc_all(j,i,iparm)=aksc(j,i)
51 abond0_all(j,i,iparm)=abond0(j,i)
54 c Store bond angle parameters
57 a0thet_all(i,iparm)=a0thet(i)
59 athet_all(j,i,iparm)=athet(j,i)
60 bthet_all(j,i,iparm)=bthet(j,i)
63 polthet_all(j,i,iparm)=polthet(j,i)
66 gthet_all(j,i,iparm)=gthet(j,i)
68 theta0_all(i,iparm)=theta0(i)
69 sig0_all(i,iparm)=sig0(i)
70 sigc0_all(i,iparm)=sigc0(i)
73 nthetyp_all(iparm)=nthetyp
74 ntheterm_all(iparm)=ntheterm
75 ntheterm2_all(iparm)=ntheterm2
76 ntheterm3_all(iparm)=ntheterm3
77 nsingle_all(iparm)=nsingle
78 ndouble_all(iparm)=ndouble
79 nntheterm_all(iparm)=nntheterm
81 ithetyp_all(i,iparm)=ithetyp(i)
86 aa0thet_all(i,j,k,iparm)=aa0thet(i,j,k)
88 aathet_all(l,i,j,k,iparm)=aathet(l,i,j,k)
92 bbthet_all(m,l,i,j,k,iparm)=bbthet(m,l,i,j,k)
93 ccthet_all(m,l,i,j,k,iparm)=ccthet(m,l,i,j,k)
94 ddthet_all(m,l,i,j,k,iparm)=ddthet(m,l,i,j,k)
95 eethet_all(m,l,i,j,k,iparm)=eethet(m,l,i,j,k)
101 ffthet_all(mm,m,l,i,j,k,iparm)=ffthet(mm,m,l,i,j,k)
102 ggthet_all(mm,m,l,i,j,k,iparm)=ggthet(mm,m,l,i,j,k)
111 c Store the sidechain rotamer parameters
113 nlob_all(i,iparm)=nlob(i)
115 bsc_all(j,i,iparm)=bsc(j,i)
117 censc_all(k,j,i,iparm)=censc(k,j,i)
121 gaussc_all(l,k,j,i,iparm)=gaussc(l,k,j,i)
129 sc_parmin_all(j,i,iparm)=sc_parmin(j,i)
133 c Store the torsional parameters
136 v0_all(i,j,iparm)=v0(i,j)
137 nterm_all(i,j,iparm)=nterm(i,j)
138 nlor_all(i,j,iparm)=nlor(i,j)
140 v1_all(k,i,j,iparm)=v1(k,i,j)
141 v2_all(k,i,j,iparm)=v2(i,i,j)
144 vlor1_all(k,i,j,iparm)=vlor1(k,i,j)
145 vlor2_all(k,i,j,iparm)=vlor2(k,i,j)
146 vlor3_all(k,i,j,iparm)=vlor3(k,i,j)
150 c Store the double torsional parameters
154 ntermd1_all(i,j,k,iparm)=ntermd_1(i,j,k)
155 ntermd2_all(i,j,k,iparm)=ntermd_2(i,j,k)
156 do l=1,ntermd_1(i,j,k)
157 v1c_all(1,l,i,j,k,iparm)=v1c(1,l,i,j,k)
158 v1c_all(2,l,i,j,k,iparm)=v1c(2,l,i,j,k)
159 v2c_all(1,l,i,j,k,iparm)=v2c(1,l,i,j,k)
160 v2c_all(2,l,i,j,k,iparm)=v2c(2,l,i,j,k)
162 do l=1,ntermd_2(i,j,k)
163 do m=1,ntermd_2(i,j,k)
164 v2s_all(l,m,i,j,k,iparm)=v2s(l,m,i,j,k)
170 c Store parameters of the cumulants
173 b1_all(j,i,iparm)=b1(j,i)
174 b1tilde_all(j,i,iparm)=b1tilde(j,i)
175 b2_all(j,i,iparm)=b2(j,i)
179 cc_all(k,j,i,iparm)=cc(k,j,i)
180 ctilde_all(k,j,i,iparm)=ctilde(k,j,i)
181 dd_all(k,j,i,iparm)=dd(k,j,i)
182 dtilde_all(k,j,i,iparm)=dtilde(k,j,i)
183 ee_all(k,j,i,iparm)=ee(k,j,i)
187 c Store the parameters of electrostatic interactions
190 app_all(j,i,iparm)=app(j,i)
191 bpp_all(j,i,iparm)=bpp(j,i)
192 ael6_all(j,i,iparm)=ael6(j,i)
193 ael3_all(j,i,iparm)=ael3(j,i)
196 c Store sidechain parameters
199 aa_all(j,i,iparm)=aa(j,i)
200 bb_all(j,i,iparm)=bb(j,i)
201 r0_all(j,i,iparm)=r0(j,i)
202 sigma_all(j,i,iparm)=sigma(j,i)
203 chi_all(j,i,iparm)=chi(j,i)
204 augm_all(j,i,iparm)=augm(j,i)
205 eps_all(j,i,iparm)=eps(j,i)
209 chip_all(i,iparm)=chip(i)
210 alp_all(i,iparm)=alp(i)
212 c Store the SCp parameters
215 aad_all(i,j,iparm)=aad(i,j)
216 bad_all(i,j,iparm)=bad(i,j)
219 c Store disulfide-bond parameters
228 c Store SC-backbone correlation parameters
229 nterm_sccor_all(iparm)=nterm_sccor
233 v1sccor_all(k,i,j,iparm)=v1sccor(k,i,j)
234 v2sccor_all(k,i,j,iparm)=v2sccor(k,i,j)
240 c--------------------------------------------------------------------------
241 subroutine restore_parm(iparm)
243 C Store parameters of set IPARM
244 C valence angles and the side chains and energy parameters.
248 include 'DIMENSIONS.ZSCOPT'
249 include 'DIMENSIONS.FREE'
250 include 'COMMON.IOUNITS'
251 include 'COMMON.CHAIN'
252 include 'COMMON.INTERACT'
254 include 'COMMON.LOCAL'
255 include 'COMMON.TORSION'
256 include 'COMMON.FFIELD'
257 include 'COMMON.NAMES'
258 include 'COMMON.SBRIDGE'
259 include 'COMMON.SCROT'
260 include 'COMMON.SCCOR'
261 include 'COMMON.ALLPARM'
262 integer i,j,k,l,m,mm,iparm
267 welec=ww_all(3,iparm)
268 wcorr=ww_all(4,iparm)
269 wcorr5=ww_all(5,iparm)
270 wcorr6=ww_all(6,iparm)
271 wel_loc=ww_all(7,iparm)
272 wturn3=ww_all(8,iparm)
273 wturn4=ww_all(9,iparm)
274 wturn6=ww_all(10,iparm)
275 wang=ww_all(11,iparm)
276 wscloc=ww_all(12,iparm)
277 wtor=ww_all(13,iparm)
278 wtor_d=ww_all(14,iparm)
279 wstrain=ww_all(15,iparm)
280 wvdwpp=ww_all(16,iparm)
281 wbond=ww_all(17,iparm)
282 wsccor=ww_all(19,iparm)
283 c Restore bond parameters
284 vbldp0=vbldp0_all(iparm)
287 nbondterm(i)=nbondterm_all(i,iparm)
289 vbldsc0(j,i)=vbldsc0_all(j,i,iparm)
290 aksc(j,i)=aksc_all(j,i,iparm)
291 abond0(j,i)=abond0_all(j,i,iparm)
294 c Restore bond angle parameters
297 a0thet(i)=a0thet_all(i,iparm)
299 athet(j,i)=athet_all(j,i,iparm)
300 bthet(j,i)=bthet_all(j,i,iparm)
303 polthet(j,i)=polthet_all(j,i,iparm)
306 gthet(j,i)=gthet_all(j,i,iparm)
308 theta0(i)=theta0_all(i,iparm)
309 sig0(i)=sig0_all(i,iparm)
310 sigc0(i)=sigc0_all(i,iparm)
313 nthetyp=nthetyp_all(iparm)
314 ntheterm=ntheterm_all(iparm)
315 ntheterm2=ntheterm2_all(iparm)
316 ntheterm3=ntheterm3_all(iparm)
317 nsingle=nsingle_all(iparm)
318 ndouble=ndouble_all(iparm)
319 nntheterm=nntheterm_all(iparm)
321 ithetyp(i)=ithetyp_all(i,iparm)
326 aa0thet(i,j,k)=aa0thet_all(i,j,k,iparm)
328 aathet(l,i,j,k)=aathet_all(l,i,j,k,iparm)
332 bbthet(m,l,i,j,k)=bbthet_all(m,l,i,j,k,iparm)
333 ccthet(m,l,i,j,k)=ccthet_all(m,l,i,j,k,iparm)
334 ddthet(m,l,i,j,k)=ddthet_all(m,l,i,j,k,iparm)
335 eethet(m,l,i,j,k)=eethet_all(m,l,i,j,k,iparm)
341 ffthet(mm,m,l,i,j,k)=ffthet_all(mm,m,l,i,j,k,iparm)
342 ggthet(mm,m,l,i,j,k)=ggthet_all(mm,m,l,i,j,k,iparm)
350 c Restore the sidechain rotamer parameters
353 nlob(i)=nlob_all(i,iparm)
355 bsc(j,i)=bsc_all(j,i,iparm)
357 censc(k,j,i)=censc_all(k,j,i,iparm)
361 gaussc(l,k,j,i)=gaussc_all(l,k,j,i,iparm)
369 sc_parmin(j,i)=sc_parmin_all(j,i,iparm)
373 c Restore the torsional parameters
376 v0(i,j)=v0_all(i,j,iparm)
377 nterm(i,j)=nterm_all(i,j,iparm)
378 nlor(i,j)=nlor_all(i,j,iparm)
380 v1(k,i,j)=v1_all(k,i,j,iparm)
381 v2(i,i,j)=v2_all(k,i,j,iparm)
384 vlor1(k,i,j)=vlor1_all(k,i,j,iparm)
385 vlor2(k,i,j)=vlor2_all(k,i,j,iparm)
386 vlor3(k,i,j)=vlor3_all(k,i,j,iparm)
390 c Restore the double torsional parameters
394 ntermd_1(i,j,k)=ntermd1_all(i,j,k,iparm)
395 ntermd_2(i,j,k)=ntermd2_all(i,j,k,iparm)
396 do l=1,ntermd_1(i,j,k)
397 v1c(1,l,i,j,k)=v1c_all(1,l,i,j,k,iparm)
398 v1c(2,l,i,j,k)=v1c_all(2,l,i,j,k,iparm)
399 v2c(1,l,i,j,k)=v2c_all(1,l,i,j,k,iparm)
400 v2c(2,l,i,j,k)=v2c_all(2,l,i,j,k,iparm)
402 do l=1,ntermd_2(i,j,k)
403 do m=1,ntermd_2(i,j,k)
404 v2s(l,m,i,j,k)=v2s_all(l,m,i,j,k,iparm)
410 c Restore parameters of the cumulants
413 b1(j,i)=b1_all(j,i,iparm)
414 b1tilde(j,i)=b1tilde_all(j,i,iparm)
415 b2(j,i)=b2_all(j,i,iparm)
419 cc(k,j,i)=cc_all(k,j,i,iparm)
420 ctilde(k,j,i)=ctilde_all(k,j,i,iparm)
421 dd(k,j,i)=dd_all(k,j,i,iparm)
422 dtilde(k,j,i)=dtilde_all(k,j,i,iparm)
423 ee(k,j,i)=ee_all(k,j,i,iparm)
427 c Restore the parameters of electrostatic interactions
430 app(j,i)=app_all(j,i,iparm)
431 bpp(j,i)=bpp_all(j,i,iparm)
432 ael6(j,i)=ael6_all(j,i,iparm)
433 ael3(j,i)=ael3_all(j,i,iparm)
436 c Restore sidechain parameters
439 aa(j,i)=aa_all(j,i,iparm)
440 bb(j,i)=bb_all(j,i,iparm)
441 r0(j,i)=r0_all(j,i,iparm)
442 sigma(j,i)=sigma_all(j,i,iparm)
443 chi(j,i)=chi_all(j,i,iparm)
444 augm(j,i)=augm_all(j,i,iparm)
445 eps(j,i)=eps_all(j,i,iparm)
449 chip(i)=chip_all(i,iparm)
450 alp(i)=alp_all(i,iparm)
452 c Restore the SCp parameters
455 aad(i,j)=aad_all(i,j,iparm)
456 bad(i,j)=bad_all(i,j,iparm)
459 c Restore disulfide-bond parameters
468 c Restore SC-backbone correlation parameters
469 nterm_sccor=nterm_sccor_all(iparm)
473 v1sccor(k,i,j)=v1sccor_all(k,i,j,iparm)
474 v2sccor(k,i,j)=v2sccor_all(k,i,j,iparm)