Changeset 8609
- Timestamp:
- Nov 8, 2012, 3:21:14 PM (11 years ago)
- Location:
- trunk/anuga_core/source/anuga_parallel
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga_parallel/sequential_distribute.py
r8605 r8609 122 122 123 123 124 parallel_domain = Parallel_domain(points, vertices, boundary, 125 full_send_dict=full_send_dict, 126 ghost_recv_dict=ghost_recv_dict, 127 number_of_full_nodes=number_of_full_nodes, 128 number_of_full_triangles=number_of_full_triangles, 129 geo_reference=georef, 130 number_of_global_triangles = number_of_global_triangles, 131 number_of_global_nodes = number_of_global_nodes, 132 processor = p, 133 numproc = numprocs, 134 s2p_map = s2p_map, 135 p2s_map = p2s_map, ## jj added this 136 tri_l2g = tri_l2g, ## SR added this 137 node_l2g = node_l2g, 138 ghost_layer_width = ghost_layer_width) 124 args = [points, vertices, boundary] 125 126 kwargs = {'full_send_dict': full_send_dict, 127 'ghost_recv_dict': ghost_recv_dict, 128 'number_of_full_nodes': number_of_full_nodes, 129 'number_of_full_triangles': number_of_full_triangles, 130 'geo_reference': georef, 131 'number_of_global_triangles': number_of_global_triangles, 132 'number_of_global_nodes': number_of_global_nodes, 133 'processor': p, 134 'numproc': numprocs, 135 's2p_map': s2p_map, 136 'p2s_map': p2s_map, ## jj added this 137 'tri_l2g': tri_l2g, ## SR added this 138 'node_l2g': node_l2g, 139 'ghost_layer_width': ghost_layer_width} 140 141 parallel_domain = Parallel_domain(*args, **kwargs) 142 143 139 144 140 145 #------------------------------------------------------------------------ … … 174 179 f.close() 175 180 181 #FIXME SR: Looks like we could reduce storage by a factor of 4 by just 182 # storing the data to create the parallel_domain instead of pickling 183 # a created domain 184 #pickle_name = 'test_P%g_%g.pickle'% (numprocs,p) 185 #f = file(pickle_name, 'wb') 186 #cPickle.dump( (args, kwargs, quantities), f, protocol=cPickle.HIGHEST_PROTOCOL) 187 #f.close() 176 188 177 189 return
Note: See TracChangeset
for help on using the changeset viewer.