Ignore:
Timestamp:
Sep 20, 2009, 6:35:14 PM (14 years ago)
Author:
steve
Message:

Have been playing with using a slope limited velocity to calculate
fluxes (hence the addition of evolved_quantities as well as conserved
quantities.

But the commit is to fix a problem Rudy found with sww2dem. Seems
numpy.array2string is a little too clever, in that it summarizes
output if there is a long sequence of zeros to
[0.0, 0.0, 0.0, ... 0.0, 0.0 ,0.0] To get around this I have added
a call to numpy.set_options(threshold=sys.max_int) to turn this
behaviour off!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga_parallel/test_parallel.py

    r7507 r7519  
    169169            assert(num.allclose(submesh['ghost_triangles'][1],true_ghost_triangles[1]))
    170170            assert num.allclose(submesh['ghost_triangles'][2],true_ghost_triangles[2]), ParallelException('X')
    171             #if not num.allclose(submesh['ghost_triangles'][2],true_ghost_triangles[2]):
    172             #    import pypar
    173             #    raise Exception, 'Here it is'
    174             #    pypar.abort()
    175 
    176171
    177172           
     
    295290
    296291#-------------------------------------------------------------
     292
    297293if __name__=="__main__":
    298294    runner = unittest.TextTestRunner()
Note: See TracChangeset for help on using the changeset viewer.