Changeset 599


Ignore:
Timestamp:
Nov 19, 2004, 12:13:15 PM (20 years ago)
Author:
ole
Message:

Removed old print statements polluting the output from
unit testing

Location:
inundation/ga/storm_surge/pyvolution
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • inundation/ga/storm_surge/pyvolution/cg_solve.py

    r477 r599  
    5858       i = i+1
    5959       if i%iprint == 0 :
    60           print 'i = %g rTr = %20.15e'% (i,rTr)
     60          pass
     61          #FIXME: Should depend on verbosity
     62          #print 'i = %g rTr = %20.15e'% (i,rTr)
    6163
    6264   #FIXME: Should this raise an exception?       
  • inundation/ga/storm_surge/pyvolution/sparse_ext.c

    r597 r599  
    5252    *y;               //Return vector array
    5353
    54   double *xdata;
    55    
     54 
    5655  int dimensions[1], M, err;
    57   int xdim, i;
    5856 
    5957  // Convert Python arguments to C 
  • inundation/ga/storm_surge/pyvolution/test_cg_solve.py

    r596 r599  
    103103
    104104        # Convert to csr format
    105         print 'start covert'
     105        #print 'start covert'
    106106        A = Sparse_CSR(A)
    107         print 'finish covert'
     107        #print 'finish covert'
    108108        b = A*xe
    109109        x = conjugate_gradient(A,b,b,iprint=20)
  • inundation/ga/storm_surge/pyvolution/test_sparse.py

    r596 r599  
    181181        A[2,0] = 5
    182182
    183         print ' '
    184         print A.todense()
     183        #print ' '
     184        #print A.todense()
    185185
    186186        B = Sparse_CSR(A)
    187187
    188         print B.todense()
     188        #print B.todense()
    189189
    190190        C = [1, 2, 3]
     
    194194        C2 = [[1,2],[2,4],[3,6]]
    195195
    196         print B*C2
     196        #print B*C2
    197197
    198198        assert allclose(B*C2, [[15.0, 30.0],[10.0, 20.0],[8.0, 16.0],[0.0, 0.0]])
Note: See TracChangeset for help on using the changeset viewer.