From 1d4f91b9121e49919288cb38b9a159087084bffb Mon Sep 17 00:00:00 2001 From: Craig Warren Date: Mon, 4 Sep 2023 16:21:21 +0100 Subject: [PATCH] Revert previous change --- gprMax/updates.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/gprMax/updates.py b/gprMax/updates.py index 296360ca..9adece69 100644 --- a/gprMax/updates.py +++ b/gprMax/updates.py @@ -595,6 +595,11 @@ class CUDAUpdates: grid=self.grid.bpg, ) + def update_magnetic_pml(self): + """Updates magnetic field components with the PML correction.""" + for pml in self.grid.pmls["slabs"]: + pml.update_magnetic() + def update_magnetic_sources(self): """Updates magnetic field components from sources.""" if self.grid.magneticdipoles: @@ -657,6 +662,11 @@ class CUDAUpdates: grid=self.grid.bpg, ) + def update_electric_pml(self): + """Updates electric field components with the PML correction.""" + for pml in self.grid.pmls["slabs"]: + pml.update_electric() + def update_electric_sources(self): """Updates electric field components from sources - update any Hertzian dipole sources last. @@ -1159,6 +1169,11 @@ class OpenCLUpdates: ) event.wait() + def update_magnetic_pml(self): + """Updates magnetic field components with the PML correction.""" + for pml in self.grid.pmls["slabs"]: + pml.update_magnetic() + def update_magnetic_sources(self): """Updates magnetic field components from sources.""" if self.grid.magneticdipoles: @@ -1218,6 +1233,11 @@ class OpenCLUpdates: event.wait() + def update_electric_pml(self): + """Updates electric field components with the PML correction.""" + for pml in self.grid.pmls["slabs"]: + pml.update_electric() + def update_electric_sources(self): """Updates electric field components from sources - update any Hertzian dipole sources last.