Changeset 9623
- Timestamp:
- Feb 6, 2015, 9:49:21 AM (10 years ago)
- Location:
- trunk
- Files:
-
- 2 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/anuga/parallel/parallel_internal_boundary_operator.py
r9622 r9623 113 113 if self.height <= 0.0: 114 114 if self.myid == self.master_proc: 115 print 'debug_A'116 115 Q = 0.0 117 116 barrel_velocity = 0.0 … … 126 125 #Send attributes of both enquiry points to the master proc 127 126 if self.myid == self.master_proc: 128 print 'debug_B'129 127 130 128 if self.myid == self.enquiry_proc[0]: … … 155 153 # Determine the direction of the flow 156 154 if self.myid == self.master_proc: 157 print 'debug_C'158 155 if self.use_velocity_head: 159 156 self.delta_total_energy = enq_total_energy0 - enq_total_energy1 … … 195 192 # master proc orders reversal if applicable 196 193 if self.myid == self.master_proc: 197 print 'debug_D'198 194 199 195 # Reverse the inflow and outflow direction? … … 219 215 # Master proc computes return values 220 216 if self.myid == self.master_proc: 221 print 'debug_E'222 217 return Q, barrel_velocity, outlet_culvert_depth 223 218 else: -
trunk/anuga_core/anuga/shallow_water/shallow_water_domain.py
r9573 r9623 1429 1429 volume = Height.get_integral() 1430 1430 1431 if numprocs == 1:1431 if numprocs == 1: 1432 1432 self.volume_history.append(volume) 1433 1433 return volume … … 2244 2244 self.store_timestep() 2245 2245 2246 2247 2246 if self.checkpoint: 2248 2247 … … 2576 2575 If returnStats, return a list with the volume statistics 2577 2576 """ 2578 from anuga _parallelimport myid2577 from anuga import myid 2579 2578 2580 2579 if(self.compute_fluxes_method is not 'DE'): -
trunk/anuga_work/development/gareth/tests/ras_bridge/channel_floodplain1.py
r9621 r9623 182 182 [floodplain_width/2. + chan_width/2.-0.01, bridge_us+0.01] ] 183 183 184 hecras_discharge_function = hecras_internal_boundary_function(185 'hecras_bridge_table_high_deck.csv',186 allow_sign_reversal=True)184 #hecras_discharge_function = hecras_internal_boundary_function( 185 # 'hecras_bridge_table_high_deck.csv', 186 # allow_sign_reversal=True) 187 187 188 188 #bridge = Internal_boundary_operator( … … 240 240 if(myid==0): 241 241 print domain.timestepping_statistics() 242 print domain.report_water_volume_statistics() 242 243 vol = domain.report_water_volume_statistics() 243 244 244 245 barrier() -
trunk/anuga_work/development/gareth/tests/ras_bridge/test_internal_boundary_functions.py
r9601 r9623 3 3 4 4 import numpy 5 import internal_boundary_functions6 from internal_boundary_functions import hecras_internal_boundary_function5 from anuga.structures import internal_boundary_functions 6 from anuga.structures.internal_boundary_functions import hecras_internal_boundary_function 7 7 8 8
Note: See TracChangeset
for help on using the changeset viewer.