diff --git a/kwave/options/simulation_options.py b/kwave/options/simulation_options.py index 78a49f10..78a30e46 100644 --- a/kwave/options/simulation_options.py +++ b/kwave/options/simulation_options.py @@ -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]