Changeset 38d77eb for hbond.f


Ignore:
Timestamp:
11/19/09 11:29:48 (14 years ago)
Author:
baerbaer <baerbaer@…>
Branches:
master
Children:
7137e5d
Parents:
32289cd
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • hbond.f

    r32289cd r38d77eb  
    5959        ntlvr=nvrml(nml)
    6060        if (ntlvr.eq.0) then
    61           write (*,'(a,i4)')
     61          write (logString, '(a,i4)')
    6262     &           ' hbond> No variables defined in molecule #',nml
    6363          return
     
    108108                    ixtyhb(ntyhb)=ixhb
    109109                  else
    110                     write(*,*) ' hbond> increase parameter MXTYHB'
     110                    write (logString, *)
     111     &                    ' hbond> increase parameter MXTYHB'
    111112                    stop
    112113                  endif
     
    139140                  ixtyhb(ntyhb)=ixhb
    140141                else
    141                   write(*,*) ' hbond> increase parameter MXTYHB'
     142                  write (logString, *)
     143     &               ' hbond> increase parameter MXTYHB'
    142144                  stop
    143145                endif
     
    158160!     enddo
    159161
    160       if (ipr.gt.0) write(*,'(1x,a,/)') ' hbond>  Hydrogen Bonds:'
     162      if (ipr.gt.0) write (logString, '(1x,a,/)')
     163     &   ' hbond>  Hydrogen Bonds:'
    161164
    162165      if (ntyhb.gt.0) then
     
    287290      adab=valang(id,ia,ib)*crd
    288291
    289       write(*,*) '  '
    290       write(*,*) ' Dah: ',dah,' Dad: ',dad
    291       write(*,*) ' Adha: ',adha,' Ahab: ',adha,' Adab: ',adab
    292       write(*,*) '  '
     292      write (logString, *) '  '
     293      write (logString, *) ' Dah: ',dah,' Dad: ',dad
     294      write (logString, *) ' Adha: ',adha,' Ahab: ',adha,' Adab: ',adab
     295      write (logString, *) '  '
    293296
    294297      return
Note: See TracChangeset for help on using the changeset viewer.