Changeset 3120


Ignore:
Timestamp:
Jun 8, 2006, 3:28:12 PM (18 years ago)
Author:
linda
Message:

changed run_parallel_advection_prof.py to increase the size of the grid

Location:
inundation/parallel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • inundation/parallel/parallel_meshes.py

    r2625 r3120  
    4343
    4444    m_low, m_high = pypar.balance(m_g, numproc, processor)
    45 
     45   
    4646    n = n_g
    4747    m_low  = m_low-1
     
    5555    len2 = len2_g
    5656    origin = ( origin_g[0]+float(m_low)/float(m_g)*len1_g, origin_g[1] )
    57 
    5857
    5958    #Calculate number of points
  • inundation/parallel/run_parallel_advection_prof.py

    r3041 r3120  
    5555processor_name = pypar.Get_processor_name()
    5656
    57 N = 20
    58 M = 20
     57N = 320
     58M = 320
    5959
    6060#######################
     
    6767points, vertices, boundary, full_send_dict, ghost_recv_dict =  \
    6868    parallel_rectangle(N, M, len1_g=1.0)
     69
     70print "Myid = ", myid, "no points = ", len(points), \
     71      "no vertices = ", len(vertices), "no boundaries = ", len(boundary)
    6972
    7073###########################################
     
    107110import hotshot
    108111profiler = hotshot.Profile("hotshot." + str(numprocs) + "." + str(myid) + ".prof")
    109 s = '''for t in domain.evolve(yieldstep = 0.1, finaltime = 10):
     112s = '''for t in domain.evolve(yieldstep = 0.1, finaltime = 0.2):
    110113  if myid == 0:
    111114    domain.write_time()
    112115'''
     116#PUT BACK
     117#import hotshot
     118#profiler = hotshot.Profile("hotshot." + str(numprocs) + "." + str(myid) + ".prof")
     119#s = '''for t in domain.evolve(yieldstep = 0.1, finaltime = 10):
     120#  if myid == 0:
     121#    domain.write_time()
     122#'''
     123   
    113124
    114125result = profiler.runctx(s, globals(), locals())
Note: See TracChangeset for help on using the changeset viewer.