Ignore:
Timestamp:
Apr 3, 2009, 8:26:53 PM (16 years ago)
Author:
steve
Message:

Debugging parallel test function

File:
1 edited

Legend:

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

    r5763 r6721  
    5050processor_name = pypar.Get_processor_name()
    5151
    52 N = 100
    53 M = 100
     52N = 5
     53M = 2
    5454
    5555#######################
     
    6262points, vertices, boundary, full_send_dict, ghost_recv_dict =  \
    6363    parallel_rectangle(N, M, len1_g=1.0)
     64
     65#print 'ghost ',ghost_recv_dict
     66#print 'full  ',full_send_dict
     67
     68
    6469
    6570print "Myid = ", myid, "no points = ", len(points), \
     
    7580domain = Parallel_Domain(points, vertices, boundary,
    7681                         full_send_dict, ghost_recv_dict, velocity=[1.0, 0.0])
     82
     83#print 'ghost ',ghost_recv_dict
     84#print 'full  ',full_send_dict
     85
    7786
    7887# Boundaries
     
    116125    from anuga.visualiser import RealtimeVisualiser
    117126    vis = RealtimeVisualiser(domain)
    118     #vis.render_quantity_height("elevation", offset=0.01, dynamic=False)
    119     vis.render_quantity_height("stage", dynamic=True)
     127    vis.render_quantity_height("stage", zScale = 5.0, dynamic=True)
    120128    vis.colour_height_quantity('stage', (0.2, 0.2, 0.8))
    121129    vis.start()
Note: See TracChangeset for help on using the changeset viewer.