Changeset 38d77eb for mulcan_par_mod.f90


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_mod.f90

    r32289cd r38d77eb  
    103103
    104104      eol = energy()
    105       write (*,'(a,e12.5,/)')  'Energy of start configuration: ',eol
    106       write(*,*)
     105      write (logString, '(a,e12.5,/)')  'Energy of start configuration: ',eol
     106      write (logString, *)
    107107
    108108      call outpdb(1, 'start.pdb')
     
    158158! Final output
    159159      acz = acz/dble(nsw*nvr)
    160       write(*,*) 'last energy',eol
    161       write(*,*) 'acceptance rate:',acz
    162 
    163       write(*,*) 'Histogram:'
     160      write (logString, *) 'last energy',eol
     161      write (logString, *) 'acceptance rate:',acz
     162
     163      write (logString, *) 'Histogram:'
    164164      do i=kmin,kmax
    165165       if(xhist(i).gt.0.0d0) then
    166         write(*,*) i,xhist(i)
     166        write (logString, *) i,xhist(i)
    167167       end if
    168168      end do
     
    266266       end do
    267267      end do
    268       write(*,*) 'Number of contacts in reference conformation:',nci
     268      write (logString, *) 'Number of contacts in reference conformation:',nci
    269269
    270270! Read in fields with multicanonical parameter
     
    282282        vlvr(iv) = x
    283283       end do
    284        write(*,*) 'Last iteration, energy:',nswm,eol_old
     284       write (logString, *) 'Last iteration, energy:',nswm,eol_old
    285285      else
    286286! _________________________________ random start
     
    294294
    295295      eol = energy()
    296       write (*,'(e12.5,/)')  eol
     296      write (logString, '(e12.5,/)')  eol
    297297      call contacts(nhy,nhx,dham)
    298       write(*,*) 'Number of contacts in start configuration:',nhy
    299       write(*,*) 'Number of native contacts in start configuration:',   &
     298      write (logString, *) 'Number of contacts in start configuration:',nhy
     299      write (logString, *) 'Number of native contacts in start configuration:',   &
    300300     &            nhx
    301301      do i=1,nresi
    302        write(*,'(62I1)') (ijcont(i,j), j=1,nresi)
    303       end do
    304       write(*,*)
     302       write (logString, '(62I1)') (ijcont(i,j), j=1,nresi)
     303      end do
     304      write (logString, *)
    305305
    306306
     
    355355
    356356      acz = acz/dble(nsw*nvr)
    357       write(*,*) 'last energy',eol
    358       write(*,*) 'acceptance rate:',acz
     357      write (logString, *) 'last energy',eol
     358      write (logString, *) 'acceptance rate:',acz
    359359
    360360! WRITE DOWN (UN-REWEIGHTED) HISTOGRAM OF MULTICANONICAL SIMULATION
    361361      do i=kmin,kmax
    362362       if(xhist(i).gt.0.0d0) then
    363         write(*,*) i,xhist(i)
     363        write (logString, *) i,xhist(i)
    364364       end if
    365365      end do
Note: See TracChangeset for help on using the changeset viewer.