Skip to content

Commit

Permalink
Extend doc string for sww_merge
Browse files Browse the repository at this point in the history
  • Loading branch information
stoiveroberts committed Jun 9, 2022
1 parent 4e69ce1 commit a9d9181
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
8 changes: 8 additions & 0 deletions anuga/abstract_2d_finite_volumes/generic_domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -1457,11 +1457,19 @@ def set_timestepping_method(self, timestepping_method):
def get_name(self):
return self.simulation_name

def get_global_name(self):
return self.simulation_name

def set_name(self, name=None, timestamp=False):
"""Assign a name to this simulation.
This will be used to identify the output sww file.
Without parameters the name will be derived from the script file,
ie run_simulation.py -> output_run_simulation.sww
:param str name: name of simulation,
and in particular the base name of the sww output file
:param bool timestamp: add a timestamp to the simulation name
"""

import os
Expand Down
7 changes: 7 additions & 0 deletions anuga/parallel/parallel_shallow_water.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,13 @@ def apply_fractional_steps(self):


def sww_merge(self, verbose=False, delete_old=False):
'''Merge all the sub domain sww files into a global sww file
:param bool verbose: Flag to produce more output
:param bool delete_old: Flag to delete sub domain sww files after
creating global sww file
'''

# make sure all the computations have finished

Expand Down
7 changes: 7 additions & 0 deletions anuga/shallow_water/shallow_water_domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -2699,6 +2699,13 @@ def store_timestep(self):


def sww_merge(self, *args, **kwargs):
'''Merge all the sub domain sww files into a global sww file
:param bool verbose: Flag to produce more output
:param bool delete_old: Flag to delete sub domain sww files after
creating global sww file
'''

pass

Expand Down

0 comments on commit a9d9181

Please sign in to comment.