Changeset 38d77eb for dihedr.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
  • dihedr.f

    r32289cd r38d77eb  
    5757        return
    5858      else
    59         write (*,'(a,4i5)')' dihedr> Error in coordinates of atoms #: '
     59        write (logString, '(a,4i5)')
     60     &     ' dihedr> Error in coordinates of atoms #: '
    6061     &                     ,i1,i2,i3,i4
    6162
    62         write (*,*) 'stored coordinates are xvals :',
     63        write (logString, *) 'stored coordinates are xvals :',
    6364     &       xat(i1),xat(i2),xat(i3),xat(i4)
    64         write (*,*) 'yvals:', yat(i1),yat(i2),yat(i3),yat(i4)
    65         write (*,*) 'zvals:', zat(i1),zat(i2),zat(i3),zat(i4)
     65        write (logString, *) 'yvals:', yat(i1),yat(i2),yat(i3),yat(i4)
     66        write (logString, *) 'zvals:', zat(i1),zat(i2),zat(i3),zat(i4)
    6667        call outvar(0,'crash.var')       
    6768        stop
     
    110111
    111112      else
    112         write (*,'(a,3i5)')' valang> Error in coordinates of atoms #: '
     113        write (logString, '(a,3i5)')
     114     &   ' valang> Error in coordinates of atoms #: '
    113115     &                     ,i1,i2,i3
    114         write (*,*) 'stored coordinates are xvals :',
     116        write (logString, *) 'stored coordinates are xvals :',
    115117     &       xat(i1),xat(i2),xat(i3)
    116         write (*,*) 'yvals:', yat(i1),yat(i2),yat(i3)
    117         write (*,*) 'zvals:', zat(i1),zat(i2),zat(i3)
     118        write (logString, *) 'yvals:', yat(i1),yat(i2),yat(i3)
     119        write (logString, *) 'zvals:', zat(i1),zat(i2),zat(i3)
    118120        call outvar(0,'crash.var')
    119121        stop
Note: See TracChangeset for help on using the changeset viewer.