Line | |
---|
1 | ! This file contains enyreg
|
---|
2 | !
|
---|
3 | ! Copyright 2007 Frank Eisenmenger, U.H.E. Hansmann,
|
---|
4 | ! Jan H. Meinke, Sandipan Mohanty
|
---|
5 | c *******************************
|
---|
6 | real*8 function enyreg(nml)
|
---|
7 |
|
---|
8 | c ----------------------------------------------------
|
---|
9 | c
|
---|
10 | c PURPOSE: sum( ( R_i - R^ref_j )**2 )
|
---|
11 | c
|
---|
12 | c with: R_i - atom position i in SMMP structure
|
---|
13 | c R^ref_j - corresponding atom j in PDB str.
|
---|
14 | c
|
---|
15 | c CALLS: none
|
---|
16 | c
|
---|
17 | c ----------------------------------------------------
|
---|
18 |
|
---|
19 | include 'INCL.H'
|
---|
20 | include 'INCP.H'
|
---|
21 |
|
---|
22 |
|
---|
23 | eny = 0.d0
|
---|
24 |
|
---|
25 | do i=iatrs1(irsml1(nml)),iatrs2(irsml2(nml))
|
---|
26 |
|
---|
27 | j=ixatp(i)
|
---|
28 | if (j.gt.0) then ! corresp. atom in ref. structure
|
---|
29 |
|
---|
30 | eny = eny + (xat(i)-xatp(j))**2+(yat(i)-yatp(j))**2+
|
---|
31 | # (zat(i)-zatp(j))**2
|
---|
32 | endif
|
---|
33 | enddo ! atoms
|
---|
34 |
|
---|
35 | enyreg = eny
|
---|
36 |
|
---|
37 | return
|
---|
38 | end
|
---|
39 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.