Skip to content

Commit

Permalink
Update simulation_options.py (#520)
Browse files Browse the repository at this point in the history
  • Loading branch information
waltsims authored Nov 27, 2024
1 parent 8f868bd commit 96a267d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kwave/options/simulation_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def option_factory(kgrid: "kWaveGrid", options: SimulationOptions):
elif kgrid.dim == 2:
options.pml_x_alpha = val[0]
options.pml_y_alpha = val[-1]
elif kgrid.dim == 2:
elif kgrid.dim == 3:
options.pml_x_alpha = val[0]
options.pml_y_alpha = val[len(val) // 2]
options.pml_z_alpha = val[-1]
Expand Down

0 comments on commit 96a267d

Please sign in to comment.