Ignore:
Timestamp:
May 1, 2006, 10:36:09 AM (19 years ago)
Author:
linda
Message:

Continued working on parallel documentation. Finished (waiting on feedback) description of how to parallelise the code and example codes

Location:
inundation/parallel/documentation/code
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • inundation/parallel/documentation/code/RunParallelAdvection.py

    r2785 r2786  
    8686T = Transmissive_boundary(domain)
    8787domain.default_order = 2
    88 domain.set_boundary( {'left': T, 'right': T, 'bottom': T, 'top': T, 'ghost': None} )
     88domain.set_boundary( {'left': T, 'right': T, 'bottom': T, 'top': T, \
     89                      'ghost': None} )
    8990
    9091# Ensure that the domain definitions make sense
     
    112113if myid == 0:
    113114    print 'That took %.2f seconds' %(time.time()-t0)
    114     print 'Communication time %.2f seconds'%domain.communication_time
    115     print 'Reduction Communication time %.2f seconds'%domain.communication_reduce_time
     115    print 'Communication time %.2f seconds'\
     116          %domain.communication_time
     117    print 'Reduction Communication time %.2f seconds'\
     118          %domain.communication_reduce_time
  • inundation/parallel/documentation/code/RunParallelMerimbulaMetis.py

    r2785 r2786  
    9696    rect = array(domain_full.xy_extent, Float)
    9797
    98     # Subdivide the mes
     98    # Subdivide the mesh
    9999
    100100    nodes, triangles, boundary, triangles_per_proc, quantities  =\
     
    154154T = Transmissive_boundary(domain)
    155155#R = Reflective_boundary(domain)
    156 domain.set_boundary( {'outflow': T, 'inflow': T, 'inner':T, 'exterior': T, 'open':T, 'ghost':None} )
     156domain.set_boundary( {'outflow': T, 'inflow': T, 'inner':T, \
     157                      'exterior': T, 'open':T, 'ghost':None} )
    157158
    158159# Set the initial quantities
  • inundation/parallel/documentation/code/RunParallelSwMerimbulaMetis.py

    r2785 r2786  
    189189    print 'That took %.2f seconds' %(time.time()-t0)
    190190    print 'Communication time %.2f seconds'%domain.communication_time
    191     print 'Reduction Communication time %.2f seconds'%domain.communication_reduce_time
    192     print 'Broadcast time %.2f seconds'%domain.communication_broadcast_time
     191    print 'Reduction Communication time %.2f seconds'\
     192          %domain.communication_reduce_time
     193    print 'Broadcast time %.2f seconds'\
     194          %domain.communication_broadcast_time
Note: See TracChangeset for help on using the changeset viewer.