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

    r32289cd r38d77eb  
    159159        numbox(j)=nboxj
    160160        if (nboxj.gt.mxbox) then
    161          write(*,'(a)') 'enysol> bad mxboxe-2'
    162          write(*,*) 'diagnostics ...'
    163          write(*,*) 'atom ',j
    164          write(*,*) 'position ',xat(j),yat(j),zat(j)
    165          write(*,*) 'box indices ',mx,my,mz
    166          write(*,*) 'resulting boxindex and limit ',nboxj,mxbox
     161         write (logString, '(a)') 'enysol> bad mxboxe-2'
     162         write (logString, *) 'diagnostics ...'
     163         write (logString, *) 'atom ',j
     164         write (logString, *) 'position ',xat(j),yat(j),zat(j)
     165         write (logString, *) 'box indices ',mx,my,mz
     166         write (logString, *) 'resulting boxindex and limit ',nboxj,
     167     &      mxbox
    167168
    168169         stop
     
    195196      if (myrank.eq.(no - 1)) iboxmax = ncbox
    196197      if (myrank.eq.-1) then
    197          write (*,*) 'enysol> Summary:', enysolct, ncbox, boxpp,
    198      &               ndx, ndy, ndz
     198         write (logString, *) 'enysol> Summary:', enysolct, ncbox,
     199     &               boxpp, ndx, ndy, ndz
    199200      endif
    200201      do ibox = iboxmin + 1, iboxmax + 1
     
    333334      call MPI_ALLREDUCE(eysl, eyslsum, 1, MPI_DOUBLE_PRECISION,
    334335     &      MPI_SUM,my_mpi_comm, ierror)
    335 !       write(*,*) 'enysol>', myrank, eysl, eyslsum
     336!       write (logString, *) 'enysol>', myrank, eysl, eyslsum
    336337      tsurfres = surfres
    337338      call MPI_ALLREDUCE(tsurfres, surfres, mxrs, MPI_DOUBLE_PRECISION,
     
    341342      endwtime = MPI_Wtime()
    342343      if (myrank.le.-1) then
    343          write (*,*) 'enysol>',myrank,enysolct,
     344         write (logString, *) 'enysol>',myrank,enysolct,
    344345     &               iboxmin + 1, iboxmax + 1,
    345346     &               endwtime - startwtime, "s"
     
    376377
    377378      read(lin(1:5),'(i5)') npnt
    378 !        write(*,'(a,i5)') 'the number of points---->',npnt
     379!        write (logString, '(a,i5)') 'the number of points---->',npnt
    379380
    380381!    Read the surface points
Note: See TracChangeset for help on using the changeset viewer.