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

    r32289cd r38d77eb  
    5454      ntlvr=nvrml(nml)
    5555      if (ntlvr.eq.0) then
    56         write (*,'(a,i4)')
     56        write (logString, '(a,i4)')
    5757     &           ' opereg> No variables defined in molecule #',nml
    5858        return
     
    330330        gdn = ( enyreg(nml) - eyrg ) / del
    331331
    332         write (*,*) ' Gb. var #',(ii+i),': ',gdeygb(ii+i),gdn,
     332        write (logString, *) ' Gb. var #',(ii+i),': ',gdeygb(ii+i),gdn,
    333333     &                                   abs(gdn-gdeygb(ii+i))
    334334! ----------------------------- restore
     
    382382      gda=gdeyrg(iv)         ! analytical der.
    383383
    384       write (*,'(1x,2a,2(e12.6,a))') nmvr(iv),': ',gda,' (',
     384      write (logString, '(1x,2a,2(e12.6,a))') nmvr(iv),': ',gda,' (',
    385385     &       abs(gda-gdn),')'
    386386
Note: See TracChangeset for help on using the changeset viewer.