Ignore:
Timestamp:
Sep 16, 2010, 2:09:13 PM (14 years ago)
Author:
steve
Message:

Added logging to file for fractional step operators. There needs to an member function log_timestepping_statistics() implemented for each operator.

File:
1 edited

Legend:

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

    r7967 r8018  
    15281528                    raise Exception, msg
    15291529
    1530                 # Yield final time and stop
     1530                # Log and then Yield final time and stop
    15311531                self.time = finaltime
     1532                self.log_operator_timestepping_statistics()
    15321533                yield(self.time)
    15331534                break
     
    15401541                    self.delete_old_checkpoints()
    15411542
    1542                 # Pass control on to outer loop for more specific actions
     1543                # Log and then Pass control on to outer loop for more specific actions
     1544                self.log_operator_timestepping_statistics()
    15431545                yield(self.time)
    15441546
     
    18601862        for operator in self.fractional_step_operators:
    18611863            operator()
     1864
     1865
     1866
     1867    ##
     1868    # @brief log_timestepping_statistics.
     1869    # Goes through all fractional step operators and logs timestepping statistics
     1870    def log_operator_timestepping_statistics(self):
     1871        for operator in self.fractional_step_operators:
     1872            operator.log_timestepping_statistics()
     1873
     1874    ##
     1875    # @brief print_timestepping_statistics.
     1876    # Goes through all fractional step operators and logs timestepping statistics
     1877    def print_operator_timestepping_statistics(self):
     1878        for operator in self.fractional_step_operators:
     1879            operator.print_timestepping_statistics()
     1880
    18621881
    18631882    ##
Note: See TracChangeset for help on using the changeset viewer.