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

    r32289cd r38d77eb  
    6969      eol = energy()
    7070      e_min = eol
    71       write (*,'(a,e12.5,/)')  'energy of start configuration:',eol
     71      write (logString, '(a,e12.5,/)')  'energy of start configuration:',eol
    7272
    7373! Write start configuration in pdb-format into file
     
    7979         call metropolis(eol,acz,can_weight)
    8080      end do
    81       write(*,*) 'Energy after equilibration:',eol
     81      write (logString, *) 'Energy after equilibration:',eol
    8282
    8383!======================Simulation in canonical ensemble
     
    8686        call metropolis(eol,acz,can_weight)
    8787        if (eol.lt.e_min) then
    88            write (*,*) "New minimum energy:", eol, "t=", nsw
    89            write (*,*) eyel,eyhb,eyvr,eysl
     88           write (logString, *) "New minimum energy:", eol, "t=", nsw
     89           write (logString, *) eyel,eyhb,eyvr,eysl
    9090           e_min = eol
    9191           call outpdb(0, "minen.pdb")
     
    116116
    117117      acz = acz/dble(nsw*nvr)
    118       write(*,*) 'acceptance rate:',acz
    119       write(*,*)
     118      write (logString, *) 'acceptance rate:',acz
     119      write (logString, *)
    120120! ------------ Output Dihedreals of final configuration
    121       write(*,*) 'last energy',eol
     121      write (logString, *) 'last energy',eol
    122122      call outvar(0,'lastconf.var')
    123123!     Output final conformation as pdb-file
Note: See TracChangeset for help on using the changeset viewer.