你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-08 07:24:19 +08:00
Added tranmission line warning for OpenCL.
这个提交包含在:
@@ -653,10 +653,11 @@ class TransmissionLine(UserObjectMulti):
|
|||||||
self.__dorotate(grid)
|
self.__dorotate(grid)
|
||||||
|
|
||||||
# Warn about using a transmission line on GPU
|
# Warn about using a transmission line on GPU
|
||||||
if config.sim_config.general['cuda']:
|
if (config.sim_config.general['solver'] == 'cuda' or
|
||||||
|
config.sim_config.general['solver'] == 'opencl'):
|
||||||
logger.exception(self.params_str() + ' cannot currently be used ' +
|
logger.exception(self.params_str() + ' cannot currently be used ' +
|
||||||
'with GPU solving. Consider using a ' +
|
'with the CUDA or OpenCL-based solver. Consider ' +
|
||||||
'#voltage_source instead.')
|
'using a #voltage_source instead.')
|
||||||
raise ValueError
|
raise ValueError
|
||||||
|
|
||||||
# Check polarity & position parameters
|
# Check polarity & position parameters
|
||||||
@@ -822,7 +823,11 @@ class Rx(UserObjectMulti):
|
|||||||
else:
|
else:
|
||||||
outputs.sort()
|
outputs.sort()
|
||||||
# Get allowable outputs
|
# Get allowable outputs
|
||||||
allowableoutputs = RxUser.allowableoutputs_gpu if config.sim_config.general['cuda'] else RxUser.allowableoutputs
|
if (config.sim_config.general['solver'] =='cuda' or
|
||||||
|
config.sim_config.general['solver'] =='opencl'):
|
||||||
|
allowableoutputs = RxUser.allowableoutputs_dev
|
||||||
|
else:
|
||||||
|
allowableoutputs = RxUser.allowableoutputs
|
||||||
# Check and add field output names
|
# Check and add field output names
|
||||||
for field in outputs:
|
for field in outputs:
|
||||||
if field in allowableoutputs:
|
if field in allowableoutputs:
|
||||||
|
在新工单中引用
屏蔽一个用户