你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-08 07:24:19 +08:00
Fixed issue with PML formulation and CLI
这个提交包含在:
@@ -121,6 +121,7 @@ def process_singlecmds(singlecmds):
|
|||||||
scene_objects.append(tw)
|
scene_objects.append(tw)
|
||||||
|
|
||||||
cmd = "#pml_formulation"
|
cmd = "#pml_formulation"
|
||||||
|
pml_formulation = None
|
||||||
if singlecmds[cmd] is not None:
|
if singlecmds[cmd] is not None:
|
||||||
tmp = singlecmds[cmd].split()
|
tmp = singlecmds[cmd].split()
|
||||||
if len(tmp) != 1:
|
if len(tmp) != 1:
|
||||||
@@ -135,15 +136,12 @@ def process_singlecmds(singlecmds):
|
|||||||
if len(tmp) not in [1, 6]:
|
if len(tmp) not in [1, 6]:
|
||||||
logger.exception(f"{cmd} requires either one or six parameter(s)")
|
logger.exception(f"{cmd} requires either one or six parameter(s)")
|
||||||
raise ValueError
|
raise ValueError
|
||||||
if pml_formulation:
|
|
||||||
formulation = pml_formulation
|
|
||||||
else:
|
|
||||||
formulation = None
|
|
||||||
if len(tmp) == 1:
|
if len(tmp) == 1:
|
||||||
pml_cells = PMLProps(formulation=formulation, thickness=int(tmp[0]))
|
pml_cells = PMLProps(formulation=pml_formulation, thickness=int(tmp[0]))
|
||||||
else:
|
else:
|
||||||
pml_cells = PMLProps(
|
pml_cells = PMLProps(
|
||||||
formulation=formulation,
|
formulation=pml_formulation,
|
||||||
x0=int(tmp[0]), y0=int(tmp[1]), z0=int(tmp[2]),
|
x0=int(tmp[0]), y0=int(tmp[1]), z0=int(tmp[2]),
|
||||||
xmax=int(tmp[3]), ymax=int(tmp[4]), zmax=int(tmp[5])
|
xmax=int(tmp[3]), ymax=int(tmp[4]), zmax=int(tmp[5])
|
||||||
)
|
)
|
||||||
|
在新工单中引用
屏蔽一个用户