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

    r32289cd r38d77eb  
    8484
    8585      eol=energy()
    86       write (*,'(a,e12.5,/)')  'energy of start configuration: ',eol
     86      write (logString, '(a,e12.5,/)') 
     87     &   'energy of start configuration: ',eol
    8788
    8889! Write start configuration in pdb-format into file
     
    9495         call metropolis(eol,acz,can_weight)
    9596      end do
    96       write(*,*) 'Energy after  equilibration:',eol
     97      write (logString, *)
     98     &   'Energy after  equilibration:', eol
    9799
    98100!======================Simulation by simulated annealing
     
    131133
    132134      acz = acz/dble(nsw*nvr)
    133       write(*,*) 'acceptance rate:',acz
    134       write(*,*)
     135      write (logString, *) 'acceptance rate:',acz
     136      write (logString, *)
    135137! ------------ Output Dihedreals of final configuration
    136       write(*,*) 'last energy',eol
     138      write (logString, *) 'last energy',eol
    137139      call outvar(0,' ')
    138140!     Output final conformation as pdb-file
    139141      call outpdb(0,"final.pdb")
    140       write(*,*)
     142      write (logString, *)
    141143
    142144! ------------ Output Dihedreals of conformation with lowest energy
    143       write(*,*) 'lowest energy ever found:',nemin,ymin
     145      write (logString, *) 'lowest energy ever found:',nemin,ymin
    144146      close(14)
    145147! =====================
Note: See TracChangeset for help on using the changeset viewer.