Changeset 3120
- Timestamp:
- Jun 8, 2006, 3:28:12 PM (18 years ago)
- Location:
- inundation/parallel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/parallel/parallel_meshes.py
r2625 r3120 43 43 44 44 m_low, m_high = pypar.balance(m_g, numproc, processor) 45 45 46 46 n = n_g 47 47 m_low = m_low-1 … … 55 55 len2 = len2_g 56 56 origin = ( origin_g[0]+float(m_low)/float(m_g)*len1_g, origin_g[1] ) 57 58 57 59 58 #Calculate number of points -
inundation/parallel/run_parallel_advection_prof.py
r3041 r3120 55 55 processor_name = pypar.Get_processor_name() 56 56 57 N = 2058 M = 2057 N = 320 58 M = 320 59 59 60 60 ####################### … … 67 67 points, vertices, boundary, full_send_dict, ghost_recv_dict = \ 68 68 parallel_rectangle(N, M, len1_g=1.0) 69 70 print "Myid = ", myid, "no points = ", len(points), \ 71 "no vertices = ", len(vertices), "no boundaries = ", len(boundary) 69 72 70 73 ########################################### … … 107 110 import hotshot 108 111 profiler = hotshot.Profile("hotshot." + str(numprocs) + "." + str(myid) + ".prof") 109 s = '''for t in domain.evolve(yieldstep = 0.1, finaltime = 10):112 s = '''for t in domain.evolve(yieldstep = 0.1, finaltime = 0.2): 110 113 if myid == 0: 111 114 domain.write_time() 112 115 ''' 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 113 124 114 125 result = profiler.runctx(s, globals(), locals())
Note: See TracChangeset
for help on using the changeset viewer.