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

    r32289cd r38d77eb  
    3030
    3131      character spr,blnk,str*(*),strn*(*)
     32      character*255 logString
    3233     
    3334      data blnk/' '/
     
    3637
    3738      if (spr.eq.blnk) then
    38         write (*,*) ' extstr> Separator should not be blank'
     39        write (logString, *) ' extstr> Separator should not be blank'
    3940        stop
    4041      endif
     
    7980      return
    8081! ______________________________________________________________ Error
    81     1 write (*,'(a)') ' extstr> Substring to be extracted is too long !'
     82    1 write (logString, '(a)')
     83     &   ' extstr> Substring to be extracted is too long !'
    8284      stop
    8385
Note: See TracChangeset for help on using the changeset viewer.