你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-07 23:14:03 +08:00
More compact code for checking sub-grids with CUDA combination.
这个提交包含在:
@@ -229,16 +229,13 @@ class SimulationConfig:
|
||||
# Subgrid parameter may not exist if user enters via CLI
|
||||
try:
|
||||
self.general['subgrid'] = self.args.subgrid
|
||||
# Double precision should be used with subgrid for best accuracy
|
||||
self.general['precision'] = 'double'
|
||||
if self.general['cuda']:
|
||||
raise GeneralError('The CUDA-based solver cannot currently be used with models that contain sub-grids.')
|
||||
except AttributeError:
|
||||
self.general['subgrid'] = False
|
||||
|
||||
# Double precision should be used with subgrid for best accuracy
|
||||
if self.general['subgrid']:
|
||||
self.general['precision'] = 'double'
|
||||
|
||||
if self.general['subgrid'] and self.general['cuda']:
|
||||
raise GeneralError('The CUDA-based solver cannot currently be used with models that contain sub-grids.')
|
||||
|
||||
# Scenes parameter may not exist if user enters via CLI
|
||||
try:
|
||||
self.scenes = args.scenes
|
||||
|
在新工单中引用
屏蔽一个用户