你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-08 07:24:19 +08:00
Tidied error message for PML kappamin check
这个提交包含在:
@@ -231,15 +231,14 @@ class PML:
|
|||||||
self.initialise_field_arrays()
|
self.initialise_field_arrays()
|
||||||
|
|
||||||
def check_kappamin(self):
|
def check_kappamin(self):
|
||||||
"""Checks that kappamin value for PMLCFS is not less than one.
|
"""Checks that the sum of all kappamin values, i.e. when a multi-pole
|
||||||
It is the sum of all kappamin values, i.e. when a multi-pole PML is
|
PML is used, is not less than one.
|
||||||
used, that must not be less than one.
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
kappamin = 0
|
|
||||||
kappamin = sum(cfs.kappa.min for cfs in self.CFS)
|
kappamin = sum(cfs.kappa.min for cfs in self.CFS)
|
||||||
if kappamin < 1:
|
if kappamin < 1:
|
||||||
logger.exception(f"PML kappamin value(s) must sum to less than one.")
|
logger.exception(f"Sum of kappamin value(s) for PML is {kappamin} "
|
||||||
|
"and must be greater than one.")
|
||||||
raise ValueError
|
raise ValueError
|
||||||
|
|
||||||
def initialise_field_arrays(self):
|
def initialise_field_arrays(self):
|
||||||
|
在新工单中引用
屏蔽一个用户