Changeset 38d77eb for mulcan_sim.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_sim.f

    r32289cd r38d77eb  
    7272       end do
    7373      end do
    74       write(*,*) 'Number of contacts in reference conformation:',nci
     74      write (logString, *) 'Number of contacts in reference conformation:',nci
    7575
    7676! READ IN FIELDS WITH MULTICANONICAL PARAMETER
     
    8888        vlvr(iv) = x
    8989       end do
    90        write(*,*) 'Last iteration, energy:',nswm,eol_old
     90       write (logString, *) 'Last iteration, energy:',nswm,eol_old
    9191      else
    9292! _________________________________ random start
     
    100100!
    101101      eol = energy()
    102       write (*,'(e12.5,/)')  eol
     102      write (logString, '(e12.5,/)')  eol
    103103      call contacts(nhy,nhx,dham)
    104       write(*,*) 'Number of contacts in start configuration:',nhy
    105       write(*,*) 'Number of native contacts in start configuration:',
     104      write (logString, *) 'Number of contacts in start configuration:',nhy
     105      write (logString, *) 'Number of native contacts in start configuration:',
    106106     &            nhx
    107107      do i=1,nresi
    108        write(*,'(62I1)') (ijcont(i,j), j=1,nresi)
    109       end do
    110       write(*,*)
     108       write (logString, '(62I1)') (ijcont(i,j), j=1,nresi)
     109      end do
     110      write (logString, *)
    111111!
    112112
     
    165165! FINAL OUTPUT:
    166166      acz = acz/dble(nsw*nvr)
    167       write(*,*) 'last energy',eol
    168       write(*,*) 'aczeptance rate:',acz
     167      write (logString, *) 'last energy',eol
     168      write (logString, *) 'aczeptance rate:',acz
    169169
    170170! WRITE DOWN (UN-REWEIGHTED) HISTOGRAM OF MULTICANONICAL SIMULATION
    171171      do i=kmin,kmax
    172172       if(xhist(i).gt.0.0d0) then
    173         write(*,*) i,xhist(i)
     173        write (logString, *) i,xhist(i)
    174174       end if
    175175      end do
Note: See TracChangeset for help on using the changeset viewer.