Changeset 9623


Ignore:
Timestamp:
Feb 6, 2015, 9:49:21 AM (9 years ago)
Author:
davies
Message:

Debugging

Location:
trunk
Files:
2 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/anuga/parallel/parallel_internal_boundary_operator.py

    r9622 r9623  
    113113        if self.height <= 0.0:
    114114            if self.myid == self.master_proc:
    115                 print 'debug_A'
    116115                Q = 0.0
    117116                barrel_velocity = 0.0
     
    126125        #Send attributes of both enquiry points to the master proc
    127126        if self.myid == self.master_proc:
    128             print 'debug_B'
    129127
    130128            if self.myid == self.enquiry_proc[0]:
     
    155153        # Determine the direction of the flow
    156154        if self.myid == self.master_proc:
    157             print 'debug_C'
    158155            if self.use_velocity_head:
    159156                self.delta_total_energy = enq_total_energy0 - enq_total_energy1
     
    195192        # master proc orders reversal if applicable
    196193        if self.myid == self.master_proc:
    197             print 'debug_D'
    198194
    199195            # Reverse the inflow and outflow direction?
     
    219215        # Master proc computes return values
    220216        if self.myid == self.master_proc:
    221             print 'debug_E'
    222217            return Q, barrel_velocity, outlet_culvert_depth
    223218        else:
  • trunk/anuga_core/anuga/shallow_water/shallow_water_domain.py

    r9573 r9623  
    14291429            volume = Height.get_integral()
    14301430
    1431         if numprocs ==1:
     1431        if numprocs == 1:
    14321432            self.volume_history.append(volume)
    14331433            return volume
     
    22442244                self.store_timestep()
    22452245
    2246            
    22472246            if self.checkpoint:
    22482247               
     
    25762575        If returnStats, return a list with the volume statistics
    25772576        """
    2578         from anuga_parallel import myid
     2577        from anuga import myid
    25792578
    25802579        if(self.compute_fluxes_method is not 'DE'):
  • trunk/anuga_work/development/gareth/tests/ras_bridge/channel_floodplain1.py

    r9621 r9623  
    182182               [floodplain_width/2. + chan_width/2.-0.01, bridge_us+0.01] ]
    183183
    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)
    187187
    188188#bridge = Internal_boundary_operator(
     
    240240    if(myid==0):
    241241        print domain.timestepping_statistics()
    242         print domain.report_water_volume_statistics()
     242
     243    vol = domain.report_water_volume_statistics()
    243244
    244245barrier()
  • trunk/anuga_work/development/gareth/tests/ras_bridge/test_internal_boundary_functions.py

    r9601 r9623  
    33
    44import numpy
    5 import internal_boundary_functions
    6 from internal_boundary_functions import hecras_internal_boundary_function
     5from anuga.structures import internal_boundary_functions
     6from anuga.structures.internal_boundary_functions import hecras_internal_boundary_function
    77
    88
Note: See TracChangeset for help on using the changeset viewer.