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

    r32289cd r38d77eb  
    8383!
    8484      eol = energy()
    85       write (*,'(a,e12.5,/)')  'Energy of start configuration: ',eol
    86       write(*,*)
     85      write (logString, '(a,e12.5,/)')  'Energy of start configuration: ',eol
     86      write (logString, *)
    8787
    8888      call outpdb(1, 'start.pdb')
     
    100100       muold = int(min(xmax,max(xmin,eol/ebin+sign(0.5d0,eol))))
    101101       ihist(muold) = ihist(muold) + 1
    102        write (*,*) nsw, eol, acz
     102       write (logString, *) nsw, eol, acz
    103103!
    104104! ITERATE MULTICANONICAL WEIGHTS EVERY NUP SWEEPS
     
    143143! FINAL OUTPUT:
    144144      acz = acz/dble(nsw*nvr)
    145       write(*,*) 'last energy',eol
    146       write(*,*) 'aczeptance rate:',acz
     145      write (logString, *) 'last energy',eol
     146      write (logString, *) 'aczeptance rate:',acz
    147147!
    148148! OUTPUT OF FINAL HISTOGRAM
    149149!
    150       write(*,*) 'Histogram:'
     150      write (logString, *) 'Histogram:'
    151151      do i=kmin,kmax
    152152       if(xhist(i).gt.0.0d0) then
    153         write(*,*) i,xhist(i)
     153        write (logString, *) i,xhist(i)
    154154       end if
    155155      end do
Note: See TracChangeset for help on using the changeset viewer.