Changeset 761


Ignore:
Timestamp:
Jan 20, 2005, 5:01:12 PM (20 years ago)
Author:
ole
Message:

Fixed compute_fluxes for 64 bit

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

Legend:

Unmodified
Added
Removed
  • inundation/ga/storm_surge/pyvolution/shallow_water_ext.c

    r760 r761  
    583583      }
    584584
    585       printf("%d %d [%d] (%d, %d): %.2f %.2f %.2f\n", k, i, ki, n, m,
    586              ql[0], ql[1], ql[2]);       
     585      //printf("%d %d [%d] (%d, %d): %.2f %.2f %.2f\n", k, i, ki, n, m,
     586      //             ql[0], ql[1], ql[2]);       
    587587
    588588     
  • inundation/ga/storm_surge/pyvolution/test_shallow_water.py

    r759 r761  
    382382
    383383        for name in ['level', 'xmomentum', 'ymomentum']:
    384             print name, domain.quantities[name].explicit_update
     384            #print name, domain.quantities[name].explicit_update
    385385            assert allclose(domain.quantities[name].explicit_update[1], 0)
    386386
     
    11991199        domain.order = 1       
    12001200        domain.distribute_to_vertices_and_edges()
     1201        print L[1]       
    12011202        assert allclose(L[1], val1)
    12021203       
     
    12041205        domain.order = 2       
    12051206        domain.distribute_to_vertices_and_edges()
     1207        print L[1]
    12061208        assert allclose(L[1], [2.2, 4.9, 4.9])
    12071209               
     
    23702372#-------------------------------------------------------------
    23712373if __name__ == "__main__":
    2372     suite = unittest.makeSuite(TestCase,'test_compute_fluxes0')
     2374    suite = unittest.makeSuite(TestCase,'test_distribute_basic')
    23732375    #suite = unittest.makeSuite(TestCase,'test_boundary_conditionsII')
    23742376    runner = unittest.TextTestRunner()
Note: See TracChangeset for help on using the changeset viewer.