Skip to content

Commit 019f672

Browse files
Update main.py
1 parent f74e693 commit 019f672

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

main.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -218,12 +218,12 @@ def save_experiments(experimental_series, prefix):
218218
x2 = 2.0 # right boundary
219219

220220
# convergence in time: setup
221-
T = 1*.5**5 # maximum time
222-
tau0 = T*.5**2 # timestep init
223-
N_tau = 5 # we run experiments for all tau = tau0*(.5)**(0...N_tau)
224-
tau_ref = tau0*(.5)**(N_tau+1)
221+
T = 1 # maximum time
222+
tau0 = T * 0.25 # timestep init
223+
N_tau = 10 # we run experiments for all tau = tau0*(.5)**(0...N_tau)
224+
tau_ref = tau0 * 0.5 ** (N_tau+1)
225225

226-
experiment_timesteps = [tau0 * .5 ** n for n in range(N_tau)]
226+
experiment_timesteps = [tau0 * 0.5 ** n for n in range(N_tau)]
227227

228228
# spatial discretization: identical grid left and right
229229
N_gridpoints_left = 6

0 commit comments

Comments
 (0)