Commit 6fd5ca98 authored by Valentin Vallaeys's avatar Valentin Vallaeys
Browse files

slim: remove boolean to export hydro in tracer

parent c09557de
......@@ -784,7 +784,7 @@ class ShallowWater2d:
class ShallowWaterTracer2d:
"""Create the shallow water equation for a tracer"""
def __init__(self, domain, temporal_scheme, hydro_sol, linear_equation=False, name="Tracer", offline=False, wetting_drying=None, export_every_sub_time_step=False, initial_time=None, final_time=None):
def __init__(self, domain, temporal_scheme, hydro_sol, linear_equation=False, name="Tracer", offline=False, wetting_drying=None, initial_time=None, final_time=None):
"""keyword arguments:
* domain
......@@ -811,8 +811,6 @@ class ShallowWaterTracer2d:
resolve shallow water equation (False) or use file to provide hydrodynamics (True) (default: False)
* wetting_drying
value for the wetting & drying algorithm. It has to be the same as for the shallow water equation (see Karna et al. 2011) (default: None)
* export_every_sub_time_step
boolean stating if you want to export the hydrodynamics every sub time step for further use of offline tracer (default: False)
* initial_time
initial time of the simulation (default: 0)
......@@ -879,8 +877,7 @@ class ShallowWaterTracer2d:
if self._wetting_drying is not None:
self._equation.setMovingBathWettingDrying(self._hydro_sol, None, self._wetting_drying)
self._domain._bath_function = self._equation.getBathymetry()
self._equation.setHydroSolution(self._hydro_sol)
self._export_every_sub_time_step = export_every_sub_time_step
self._equation.setHydroSolution(self._hydro_sol)
self._evaluator = None
self._point_exporter = []
self._ref = []
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment