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/test_cg_solve.py

    r7276 r7848  
    44class TestError(exceptions.Exception): pass
    55import unittest
    6 
    76
    87import numpy as num
     
    1211
    1312
     13
     14
    1415class Test_CG_Solve(unittest.TestCase):
    1516
     
    2829        x =  [0.0, 0.0, 0.0, 0.0]
    2930
    30         x = conjugate_gradient(A,b,x,iprint=0)
     31        x = conjugate_gradient(A,b,x)
    3132
    3233        assert num.allclose(x,xe)
     
    4748
    4849        try:
    49             x = conjugate_gradient(A,b,x,iprint=0,imax=2)
     50            x = conjugate_gradient(A,b,x,imax=2)
    5051        except ConvergenceError:
    5152            pass
     
    7172
    7273        b  = A*xe
    73         x = conjugate_gradient(A,b,b,tol=1.0e-5,iprint=1)
     74        x = conjugate_gradient(A,b,b,tol=1.0e-5)
    7475
    7576        assert num.allclose(x,xe)
     
    99100
    100101        b  = A*xe
    101         x = conjugate_gradient(A,b,b,iprint=0)
     102        x = conjugate_gradient(A,b,b,iprint=1)
    102103
    103104        assert num.allclose(x,xe)
Note: See TracChangeset for help on using the changeset viewer.