Changeset 8114
- Timestamp:
- Jan 25, 2011, 2:45:50 PM (13 years ago)
- Location:
- trunk/anuga_core/source/anuga_parallel
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga_parallel/parallel_api.py
r7449 r8114 124 124 ghost_recv_dict=ghost_recv_dict, 125 125 number_of_full_nodes=number_of_full_nodes, 126 number_of_full_triangles=number_of_full_triangles) 126 number_of_full_triangles=number_of_full_triangles, 127 geo_reference=georef) ## jj added this 127 128 128 129 #------------------------------------------------------------------------ -
trunk/anuga_core/source/anuga_parallel/parallel_shallow_water.py
r8107 r8114 27 27 ghost_recv_dict=None, 28 28 number_of_full_nodes=None, 29 number_of_full_triangles=None): 29 number_of_full_triangles=None, 30 geo_reference=None): #jj added this 30 31 31 32 Domain.__init__(self, … … 38 39 numproc=pypar.size(), 39 40 number_of_full_nodes=number_of_full_nodes, 40 number_of_full_triangles=number_of_full_triangles) 41 number_of_full_triangles=number_of_full_triangles, 42 geo_reference=geo_reference) #jj added this 41 43 42 44 -
trunk/anuga_core/source/anuga_parallel/test_parallel_sw_flow.py
r7811 r8114 90 90 # 91 91 # Sometimes the interpolation points sit exactly 92 # between t o centroids, so in the parallel run we92 # between two centroids, so in the parallel run we 93 93 # reset the interpolation points to the centroids 94 94 # found in the sequential run 95 95 #------------------------------------------------------------------------------ 96 96 interpolation_points = [[0.4,0.5], [0.6,0.5], [0.8,0.5], [0.9,0.5]] 97 98 if parallel:99 interpolation_points = seq_interpolation_points100 97 101 98 … … 118 115 if verbose: print 'P%d has points = %s' %(myid, tri_ids) 119 116 120 if not parallel: 121 122 123 124 125 126 117 118 c_coord = domain.get_centroid_coordinates() 119 interpolation_points = [] 120 for id in tri_ids: 121 if id<1: 122 print 'ERROR: All interpolation points be within the sequential domain!' 123 interpolation_points.append(c_coord[id,:]) 127 124 128 125 #------------------------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.