Changeset 3021 for inundation/pyvolution/domain.py
- Timestamp:
- May 30, 2006, 4:17:18 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/pyvolution/domain.py
r2866 r3021 79 79 verbose=verbose) 80 80 81 if verbose: print 'Initialising Domain' 82 from Numeric import zeros, Float, Int 81 if verbose: print 'Initialising Domain' 82 from Numeric import zeros, Float, Int, ones 83 83 from quantity import Quantity, Conserved_quantity 84 84 … … 117 117 # List of other quantity names 118 118 if ghost_recv_dict is None: 119 self.ghost_recv_dict = []119 self.ghost_recv_dict = {} 120 120 else: 121 121 self.ghost_recv_dict = ghost_recv_dict … … 125 125 126 126 # Setup Communication Buffers 127 127 128 128 if verbose: print 'Domain: Set up communication buffers (parallel)' 129 129 self.nsys = len(self.conserved_quantities) … … 136 136 buffer_shape = self.ghost_recv_dict[key][0].shape[0] 137 137 self.ghost_recv_dict[key].append(zeros( (buffer_shape,self.nsys) ,Float)) 138 139 140 # Setup cell full flag 141 # =1 for full 142 # =0 for ghost 143 N=self.number_of_elements 144 self.tri_full_flag = ones(N, Int) 145 for i in self.ghost_recv_dict.keys(): 146 for id in self.ghost_recv_dict[i][0]: 147 self.tri_full_flag[id] = 0 148 138 149 139 150 #Defaults … … 186 197 self.set_quantity_vertices_dict(vertex_quantity_dict) 187 198 188 199 189 200 if verbose: print 'Domain: Done' 190 201 191 202 192 203 193 204 … … 730 741 self.number_of_steps = 0 731 742 self.number_of_first_order_steps = 0 732 743 733 744 734 745 def evolve_to_end(self, finaltime = 1.0):
Note: See TracChangeset
for help on using the changeset viewer.