From 31d20dcdd3d9633b612bf7a22fabe3bbb3be34f2 Mon Sep 17 00:00:00 2001 From: nmannall Date: Mon, 20 May 2024 16:28:32 +0100 Subject: [PATCH] Fix regression due to precision of FDTDGrid.dl np.single caused many extra decimal places that using built in float as the dtype does not. --- gprMax/cmds_singleuse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gprMax/cmds_singleuse.py b/gprMax/cmds_singleuse.py index 037a8b75..7018ad7c 100644 --- a/gprMax/cmds_singleuse.py +++ b/gprMax/cmds_singleuse.py @@ -93,7 +93,7 @@ class Discretisation(UserObjectSingle): def build(self, model, uip): G = model.G try: - G.dl = np.array(self.kwargs["p1"], dtype=np.single) + G.dl = np.array(self.kwargs["p1"], dtype=float) except KeyError: logger.exception(f"{self.__str__()} discretisation requires a point") raise