From b54c099355dfbf63cb0f09aed71af1ccf4025aed Mon Sep 17 00:00:00 2001 From: Antonio Stanziola Date: Mon, 18 Dec 2023 15:05:47 +0000 Subject: [PATCH] removed params from helmhotlz operator (#228) --- jwave/acoustics/operators.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jwave/acoustics/operators.py b/jwave/acoustics/operators.py index a81b38c..82c3984 100644 --- a/jwave/acoustics/operators.py +++ b/jwave/acoustics/operators.py @@ -269,7 +269,7 @@ def helmholtz(u: Field, medium: Medium, *, omega=1.0, params=None) -> Field: # Add the wavenumber term k = wavevector(u, medium, omega, params=wavevector_params) - return L + k, None + return L + k def ongrid_helmholtz_init_params(u: OnGrid, medium: Medium, omega, *args, @@ -297,7 +297,7 @@ def helmholtz(u: OnGrid, medium: Medium, *, omega=1.0, params=None) -> OnGrid: # Add the wavenumber term k = wavevector(u, medium, omega=omega) - return L + k, params + return L + k def scale_source_helmholtz(source: Field, medium: Medium) -> Field: