Changeset 9658


Ignore:
Timestamp:
Feb 10, 2015, 6:31:10 PM (10 years ago)
Author:
davies
Message:

Moving structure logfiles to the output directory domain.get_datadir()

Location:
trunk/anuga_core/anuga
Files:
2 edited

Legend:

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

    r9657 r9658  
    623623        # If flag is true open file with mode = "w" to form a clean file for logging
    624624        if self.logging and self.myid == self.master_proc:
    625             self.log_filename = self.label + '.log'
     625            self.log_filename = self.domain.get_datadir() + '/' + self.label + '.log'
    626626            log_to_file(self.log_filename, stats, mode='w')
    627627            log_to_file(self.log_filename, 'time,discharge,velocity,driving_energy,delta_total_energy')
  • trunk/anuga_core/anuga/structures/structure_operator.py

    r9657 r9658  
    556556        # If flag is true open file with mode = "w" to form a clean file for logging
    557557        if self.logging:
    558             self.log_filename = self.label + '.log'
     558            self.log_filename = self.domain.get_datadir() + '/' + self.label + '.log'
    559559            log_to_file(self.log_filename, self.statistics(), mode='w')
    560560            log_to_file(self.log_filename, 'time, discharge, velocity, accumulated_flow, driving_energy, delta_total_energy')
Note: See TracChangeset for help on using the changeset viewer.