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/utilities/system_tools.py

    r7486 r8018  
    2121
    2222
    23 def log_to_file(filename, s, verbose=False):
     23def log_to_file(filename, s, verbose=False, mode='a'):
    2424    """Log string to file name
    2525    """
    2626
    27     fid = open(filename, 'a')
     27    fid = open(filename, mode)
    2828    if verbose: print s
    2929    fid.write(s + '\n')
Note: See TracChangeset for help on using the changeset viewer.