Ignore:
Timestamp:
Apr 6, 2010, 8:46:17 PM (14 years ago)
Author:
steve
Message:
 
File:
1 edited

Legend:

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

    r7674 r7676  
    11
    22"""Run parallel shallow water domain.
     3
     4   run using command like:
     5
     6   mpirun -np m python run_parallel_sw_merimbula.py
     7
     8   where m is the number of processors to be used.
     9   
     10   Will produce sww files with names domain_Pn_m.sww where m is number of processors and
     11   n in [0, m-1] refers to specific processor that owned this part of the partitioned mesh.
    312"""
    413
     
    1019import os
    1120import sys
     21import time
    1222import pypar
    1323
     
    3848#--------------------------------------------------------------------------
    3949
    40 mesh_filename = "merimbula_10785_1.tsh"
     50#mesh_filename = "merimbula_10785_1.tsh"
     51mesh_filename = "merimbula_43200.tsh"
    4152#mesh_filename = "test-100.tsh"
    42 yieldstep = 1
    43 finaltime = 20
     53yieldstep = 50
     54finaltime = 200
    4455quantity = 'stage'
    4556verbose = True
     
    8899#------------------------------------------------------------------------------
    89100if myid == 0 and verbose: print 'EVOLVE'
    90        
     101
     102t0 = time.time()
     103
    91104for t in domain.evolve(yieldstep = yieldstep, finaltime = finaltime):
    92105    if myid == 0:
    93106        domain.write_time()
     107
     108
     109if myid == 0:
     110    print 'That took %.2f seconds' %(time.time()-t0)
     111    print 'Communication time %.2f seconds'%domain.communication_time
     112    print 'Reduction Communication time %.2f seconds'%domain.communication_reduce_time
     113    print 'Broadcast time %.2f seconds'%domain.communication_broadcast_time
     114
    94115
    95116finalize()
Note: See TracChangeset for help on using the changeset viewer.