source: nursvr.f

Last change on this file was 38d77eb, checked in by baerbaer <baerbaer@…>, 14 years ago

Redirected standard out to logString.

SMMP produced a lot of log messages. This became an issue when run in massively
parallel environments. I replaced all writes to standard out to a write to logString.
The next step is to pass this string to a function that writes the messages to a log
file according to their importance and the chosen log level.

git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/smmp/trunk@34 26dc1dd8-5c4e-0410-9ffe-d298b4865968

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