Skip to content

Commit

Permalink
Examples: Fix undefined variable in plot_1d_slice.py
Browse files Browse the repository at this point in the history
Thanks Cheng-Hsin Cheng
  • Loading branch information
Sbozzolo committed Mar 28, 2023
1 parent 2649462 commit 6a941e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/bins/plot_1d_slice.py
Expand Up @@ -193,10 +193,10 @@

# Here we just have to read the data

var_1D = sim.gridfunctions[axis][var_name]
var = sim.gridfunctions[axis][var_name]

if iteration == -1:
iteration = var_1D.available_iterations[-1]
iteration = var.available_iterations[-1]

time = var.time_at_iteration(iteration)

Expand Down

0 comments on commit 6a941e7

Please sign in to comment.