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

    r32289cd r38d77eb  
    5757     &          d(mxn),xa(mxn),ga(mxn),dt(mxn),yt(mxn),gt(mxn)
    5858
    59 
     59      character(255) logString
     60     
    6061      ier = 0
    6162      iter = 0
     
    9394
    9495      if ( gdit .ge. 0.d0 ) then
    95         write(*,*) ' mincjg>  search direction is uphill'
     96        write (logString, *) ' mincjg>  search direction is uphill'
    9697        ier = 3
    9798        goto 6
     
    162163
    163164          ier=2
    164           write(*,*) ' mincjg>  too small step in search direction'
     165          write (logString, *)
     166     &       ' mincjg>  too small step in search direction'
    165167        endif
    166168
     
    230232      if ( iter .ge. (iterfm + MXFCON) ) then
    231233        ier = 4
    232         write(*,*) ' mincjg>  line search failed to reduce function'
     234        write (logString, *)
     235     &    ' mincjg>  line search failed to reduce function'
    233236        return
    234237      endif
     
    304307      call move(nfun,n,f,x,g)
    305308
    306       write(*,*) ' mincjg> ier = ',ier
     309      write (logString, *) ' mincjg> ier = ',ier
    307310
    308311      return
Note: See TracChangeset for help on using the changeset viewer.