Ignore:
Timestamp:
Jun 16, 2010, 2:50:06 PM (13 years ago)
Author:
steve
Message:

Changed the logging levels in log.py so that the information about openning the
file ./anuga.log is now only an info log as opposed to critical log. I.e. by default
doesn't write to the console.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/utilities/cg_solve.py

    r7845 r7848  
    88
    99
    10 def conjugate_gradient(A,b,x0=None,imax=10000,tol=1.0e-8,iprint=0):
     10def conjugate_gradient(A,b,x0=None,imax=10000,tol=1.0e-8,iprint=None):
    1111    """
    1212    Try to solve linear equation Ax = b using
     
    3333    return x0
    3434   
    35 def _conjugate_gradient(A,b,x0=None,imax=10000,tol=1.0e-8,iprint=0):
     35def _conjugate_gradient(A,b,x0=None,imax=10000,tol=1.0e-8,iprint=None):
    3636   """
    3737   Try to solve linear equation Ax = b using
     
    6262
    6363   #FIXME: Should test using None
    64    if iprint == 0:
     64   if iprint == None  or iprint == 0:
    6565      iprint = imax
    6666
     
    7272   rTr0 = rTr
    7373
     74   #FIXME Let the iterations stop if starting with a small residual
    7475   while (i<imax and rTr>tol**2*rTr0):
    7576       q = A*d
Note: See TracChangeset for help on using the changeset viewer.