Changeset 8021


Ignore:
Timestamp:
Sep 17, 2010, 3:07:01 PM (14 years ago)
Author:
steve
Message:

Updating logging and printing stats

Location:
trunk/anuga_core/source/anuga
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/abstract_2d_finite_volumes/generic_domain.py

    r8018 r8021  
    18741874    ##
    18751875    # @brief print_timestepping_statistics.
    1876     # Goes through all fractional step operators and logs timestepping statistics
     1876    # Goes through all fractional step operators and prints timestepping statistics
    18771877    def print_operator_timestepping_statistics(self):
    18781878        for operator in self.fractional_step_operators:
    18791879            operator.print_timestepping_statistics()
     1880
     1881    ##
     1882    # @brief print_operator_statistics.
     1883    # Goes through all fractional step operators and prints operator statistics
     1884    def print_operator_statistics(self):
     1885        for operator in self.fractional_step_operators:
     1886            operator.print_statistics()
    18801887
    18811888
  • trunk/anuga_core/source/anuga/structures/structure_operator.py

    r8020 r8021  
    255255           
    256256
    257     def structure_statistics(self):
     257    def statistics(self):
    258258
    259259
     
    289289
    290290
    291     def print_structure_statistics(self):
    292 
    293         print self.structure_statistics()
     291    def print_statistics(self):
     292
     293        print self.statistics()
    294294
    295295
     
    315315        if self.logging:
    316316            self.log_filename = self.label + '.log'
    317             log_to_file(self.log_filename, self.structure_statistics(), mode='w')
     317            log_to_file(self.log_filename, self.statistics(), mode='w')
    318318            log_to_file(self.log_filename, 'time,discharge,velocity,driving_energy,delta_total_energy')
    319319
  • trunk/anuga_core/source/anuga/structures/test_Outlet_Ctrl.py

    r8020 r8021  
    181181
    182182
    183 #    Boyd_pipe_operator(domain,
    184 #                            end_point0=ep0,
    185 #                            end_point1=ep1,
    186 #                            losses=losses,
    187 #                            diameter=1.5, #culvert_width, #3.658,
    188 #                            apron=6.0,
    189 #                            use_momentum_jet=True,
    190 #                            use_velocity_head=True,
    191 #                            manning=0.013,
    192 #                            logging=True,
    193 #                            label='pipe_culvert',
    194 #                            verbose=False)
     183    Boyd_pipe_operator(domain,
     184                            end_point0=ep0,
     185                            end_point1=ep1,
     186                            losses=losses,
     187                            diameter=1.5, #culvert_width, #3.658,
     188                            apron=6.0,
     189                            use_momentum_jet=True,
     190                            use_velocity_head=True,
     191                            manning=0.013,
     192                            logging=True,
     193                            label='pipe_culvert',
     194                            verbose=False)
    195195
    196196    Boyd_box_operator(domain,
Note: See TracChangeset for help on using the changeset viewer.