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
RevLine 
[bd2278d]1!**************************************************************
2!
3! This file contains the subroutines: nursvr, nursat
4!
5! Copyright 2003-2005 Frank Eisenmenger, U.H.E. Hansmann,
[32289cd]6! Shura Hayryan, Chin-Ku
[bd2278d]7! Copyright 2007 Frank Eisenmenger, U.H.E. Hansmann,
8! Jan H. Meinke, Sandipan Mohanty
9!
10! **************************************************************
[e40e335]11 integer*4 function nursvr(ivr)
12
[bd2278d]13! ...........................................................
14! PURPOSE: defines index of residue for given variable 'ivr'
15!
16! CALLS: none
17!
18! ...........................................................
[e40e335]19 include 'INCL.H'
20
[32289cd]21 integer i, ifirs, ivr, j
22
[e40e335]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
[38d77eb]35 write (logString, '(a,i5)') ' nursvr > Cannot find variable # '
36 & ,ivr
[e40e335]37 stop
38
39 end
40
[bd2278d]41! **********************************
[e40e335]42 integer*4 function nursat(iat)
43
[bd2278d]44! .......................................................
45! PURPOSE: defines index of residue for given atom 'iat'
46! .......................................................
[e40e335]47
48 include 'INCL.H'
49
[32289cd]50 integer i, ifirs, ilars, iat, j
51
[e40e335]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
[38d77eb]73 write (logString, '(a,i5)') ' nursat > Cannot find atom # ',iat
[e40e335]74 stop
75
76 end
Note: See TracBrowser for help on using the repository browser.