source: nursvr.f@ e40e335

Last change on this file since e40e335 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: 1.7 KB
Line 
1c**************************************************************
2c
3c This file contains the subroutines: nursvr, nursat
4c
5c Copyright 2003-2005 Frank Eisenmenger, U.H.E. Hansmann,
6c Shura Hayryan, Chin-Ku
7c Copyright 2007 Frank Eisenmenger, U.H.E. Hansmann,
8c Jan H. Meinke, Sandipan Mohanty
9c
10c **************************************************************
11 integer*4 function nursvr(ivr)
12
13c ...........................................................
14c PURPOSE: defines index of residue for given variable 'ivr'
15c
16c CALLS: none
17c
18c ...........................................................
19 include 'INCL.H'
20
21 do i=ntlml,1,-1
22 ifirs=irsml1(i)
23 if (ivr.ge.ivrrs1(ifirs).and.nvrml(i).gt.0) then
24 do j=irsml2(i),ifirs,-1
25 if (ivr.ge.ivrrs1(j).and.nvrrs(j).gt.0) then
26 nursvr=j
27 return
28 endif
29 enddo
30 endif
31 enddo
32
33 write (*,'(a,i5)') ' nursvr > Cannot find variable # ',ivr
34 stop
35
36 end
37
38c **********************************
39 integer*4 function nursat(iat)
40
41c .......................................................
42c PURPOSE: defines index of residue for given atom 'iat'
43c .......................................................
44
45 include 'INCL.H'
46
47 do i=1,ntlml
48
49 ifirs=irsml1(i)
50 ilars=irsml2(i)
51
52 if (iat.ge.iatrs1(ifirs).and.iat.le.iatrs2(ilars)) then
53
54 do j=ifirs,ilars
55
56 if (iat.ge.iatrs1(j).and.iat.le.iatrs2(j)) then
57
58 nursat=j
59
60 return
61 endif
62
63 enddo
64
65 endif
66 enddo
67
68 write (*,'(a,i5)') ' nursat > Cannot find atom # ',iat
69 stop
70
71 end
Note: See TracBrowser for help on using the repository browser.