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

    r32289cd r38d77eb  
    6666      end do
    6767      ipps = isum / num_ppr
    68       write (*,*) "Total number of interactions:", isum
    69       write (*,*) "Average # of interactions per processor", ipps
     68      write (logString, *) "Total number of interactions:", isum
     69      write (logString, *) "Average # of interactions per processor",
     70     &   ipps
    7071
    7172      totalct = 0
     
    101102     &            .lt.abs(totalct + isum - itarget))) then
    102103               workPerProcessor(nml, irank) = io + 1
    103 !                write (*,*) io + 1, totalct, itarget
     104!                write (logString, *) io + 1, totalct, itarget
    104105            else
    105106               workPerProcessor(nml, irank) = io
    106 !                write (*,*) io, totalct + isum, itarget
     107!                write (logString, *) io, totalct + isum, itarget
    107108            end if
    108109            irank = irank + 1
     
    127128!     rank = 11
    128129!     fileName = fileNameMP('base_0000.dat', 6, 9, rank)
    129 !     write (*,*), fileName
     130!     write (logString, *), fileName
    130131!     \endcode
    131132!     will output base_0011.dat.
Note: See TracChangeset for help on using the changeset viewer.