From 5ac755af6bf7ccd5a80a6a8f1139e5e3c26bbe11 Mon Sep 17 00:00:00 2001 From: jasminium Date: Fri, 14 May 2021 14:47:19 +0200 Subject: [PATCH] get sources def --- gprMax/grid.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gprMax/grid.py b/gprMax/grid.py index 32d53ee4..448a7334 100644 --- a/gprMax/grid.py +++ b/gprMax/grid.py @@ -282,6 +282,9 @@ class FDTDGrid: # hardware maximum. Avoids inadvertently exceeding the CFL due to # binary representation of floating point number. self.dt = round_value(self.dt, decimalplaces=d.getcontext().prec - 1) + + def get_srcs(self): + return self.hertziandipoles + self.magneticdipoles + self.voltagesources + self.transmissionlines class CUDAGrid(FDTDGrid):