Fix bug with solver name

这个提交包含在:
Craig Warren
2022-11-08 14:17:54 +00:00
父节点 d4520b281e
当前提交 28aff0e41f

查看文件

@@ -267,8 +267,8 @@ class SimulationConfig:
self.general['subgrid'] = self.args.subgrid self.general['subgrid'] = self.args.subgrid
# Double precision should be used with subgrid for best accuracy # Double precision should be used with subgrid for best accuracy
self.general['precision'] = 'double' self.general['precision'] = 'double'
if ((self.general['subgrid'] and self.general['cuda']) or if ((self.general['subgrid'] and self.general['solver'] == 'cuda') or
(self.general['subgrid'] and self.general['opencl'])): (self.general['subgrid'] and self.general['solver'] == 'opencl')):
logger.exception('You cannot currently use CUDA or OpenCL-based ' logger.exception('You cannot currently use CUDA or OpenCL-based '
'solvers with models that contain sub-grids.') 'solvers with models that contain sub-grids.')
raise ValueError raise ValueError