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.
这个提交包含在:
nmannall
2024-05-20 16:28:32 +01:00
父节点 543b6ea009
当前提交 31d20dcdd3

查看文件

@@ -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