Changeset 3928 for anuga_core/source/anuga_parallel
- Timestamp:
- Nov 7, 2006, 1:13:03 PM (18 years ago)
- Location:
- anuga_core/source/anuga_parallel
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga_parallel/parallel_api.py
r3926 r3928 171 171 172 172 for p in range(numprocs): 173 N = len(submesh['ghost_nodes'][p]) 173 174 M = len(submesh['ghost_triangles'][p]) 174 print 'There are %d ghost triangles on proc %d' %(M, p) 175 N = len(submesh['ghost_nodes'][p]) 176 print 'There are %d ghost nodes on proc %d' %(N, p) 175 print 'There are %d ghost nodes and %d ghost triangles on proc %d'\ 176 %(N, M, p) 177 177 178 178 -
anuga_core/source/anuga_parallel/parallel_shallow_water.py
r3926 r3928 34 34 full_send_dict=None, 35 35 ghost_recv_dict=None, 36 number_of_full_nodes= 0,37 number_of_full_triangles= 0):36 number_of_full_nodes=None, 37 number_of_full_triangles=None): 38 38 39 39 Domain.__init__(self, … … 48 48 number_of_full_triangles=number_of_full_triangles) 49 49 50 N = self.number_of_elements50 N = len(self) # number_of_triangles 51 51 52 52 # self.processor = pypar.rank() -
anuga_core/source/anuga_parallel/test_parallel_sw_runup.py
r3926 r3928 96 96 local_interpolation_points.append(i) 97 97 98 # Hack 98 # Hack before we excluded ghosts. 99 99 if numprocs == 2: 100 100 if myid == 0: 101 101 del local_interpolation_points[0] 102 102 #local_interpolation_points = [1,2,3] 103 104 103 if numprocs == 3: 105 104 if myid == 1: 106 105 del local_interpolation_points[0] 107 108 109 106 if numprocs == 4: 110 107 if myid == 0: … … 122 119 123 120 for t in domain.evolve(yieldstep = 0.1, finaltime = 5.0): 124 #domain.write_time() 125 121 domain.write_time() 126 122 127 123 # Record time series at known points
Note: See TracChangeset
for help on using the changeset viewer.