你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-08 07:24:19 +08:00
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.
这个提交包含在:
@@ -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
|
||||
|
在新工单中引用
屏蔽一个用户