Changeset 8542


Ignore:
Timestamp:
Aug 30, 2012, 11:11:44 AM (13 years ago)
Author:
steve
Message:

Changed output to measure partitioning time

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga_parallel/run_parallel_sw_rectangular_cross.py

    r8538 r8542  
    3131
    3232
     33t0 = time.time()
    3334
    34 verbose = True
     35verbose = False
    3536
    3637#--------------------------------------------------------------------------
     
    4041    length = 2.0
    4142    width = 2.0
    42     dx = dy = 0.02
     43    dx = dy = 0.005
    4344    domain = rectangular_cross_domain(int(length/dx), int(width/dy),
    4445                                              len1=length, len2=width)
     
    5051    domain = None
    5152
     53t1 = time.time()
    5254
     55if myid == 0 :
     56    print 'Create sequential domain ',t1-t0
    5357
    5458if myid == 0 and verbose:
     
    5963
    6064# setup parameters to test using different ghost_layer_widths
    61 parameters = dict(ghost_layer_width = 4)
     65parameters = dict(ghost_layer_width = 2)
    6266domain = distribute(domain,verbose=verbose, parameters=parameters)
    6367
     68t2 = time.time()
     69
     70if myid == 0 :
     71    print 'Distribute domain ',t2-t1
     72   
    6473if myid == 0 : print 'after parallel domain'
    6574
     
    8089
    8190
    82 domain.check_integrity()
     91#domain.check_integrity()
    8392
    8493if myid == 0 : print 'after check_integrity'
     
    122131
    123132
    124 yieldstep = 0.05
    125 finaltime = 2.0
     133yieldstep = 0.005
     134finaltime = 0.00
    126135
    127136barrier()
     
    150159
    151160
    152 domain.dump_triangulation(filename="rectangular_cross_%g.png"% numprocs)
     161#domain.dump_triangulation(filename="rectangular_cross_%g.png"% numprocs)
    153162
    154163finalize()
Note: See TracChangeset for help on using the changeset viewer.