# HG changeset patch # User calpe <miguel.calpe.linares@gmail.com> # Date 1542125120 -3600 # Tue Nov 13 17:05:20 2018 +0100 # Node ID 346a5c52433783087a5eda15c862d9ead1003fc7 # Parent ed90e0dc5ee3c6388f13dbe4963f77c77ba4c89f Debug tmin=None for modules spect_energu_budget.py and spectra.py. diff --git a/fluidsim/solvers/ns2d/strat/output/spect_energy_budget.py b/fluidsim/solvers/ns2d/strat/output/spect_energy_budget.py --- a/fluidsim/solvers/ns2d/strat/output/spect_energy_budget.py +++ b/fluidsim/solvers/ns2d/strat/output/spect_energy_budget.py @@ -220,6 +220,9 @@ dset_dissEK_ky = f["dissEK_ky"].value dset_dissEA_ky = f["dissEA_ky"].value + if tmin is None: + tmin = 0 + if tmax is None: tmax = np.max(times) diff --git a/fluidsim/solvers/ns2d/strat/output/spectra.py b/fluidsim/solvers/ns2d/strat/output/spectra.py --- a/fluidsim/solvers/ns2d/strat/output/spectra.py +++ b/fluidsim/solvers/ns2d/strat/output/spectra.py @@ -112,6 +112,8 @@ kx = dset_kxE.value ky = dset_kyE.value + if tmin is None: + tmin = 0 if tmax is None: tmax = np.max(times)