Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminRodenberg authored Apr 19, 2018
1 parent f74e693 commit 019f672
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,12 +218,12 @@ def save_experiments(experimental_series, prefix):
x2 = 2.0 # right boundary

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

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

# spatial discretization: identical grid left and right
N_gridpoints_left = 6
Expand Down

0 comments on commit 019f672

Please sign in to comment.