From 28aff0e41f91d2bac8fdb959b8eceb165c8d21a6 Mon Sep 17 00:00:00 2001 From: Craig Warren Date: Tue, 8 Nov 2022 14:17:54 +0000 Subject: [PATCH] Fix bug with solver name --- gprMax/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gprMax/config.py b/gprMax/config.py index e4333816..0f007351 100644 --- a/gprMax/config.py +++ b/gprMax/config.py @@ -267,8 +267,8 @@ class SimulationConfig: self.general['subgrid'] = self.args.subgrid # Double precision should be used with subgrid for best accuracy self.general['precision'] = 'double' - if ((self.general['subgrid'] and self.general['cuda']) or - (self.general['subgrid'] and self.general['opencl'])): + if ((self.general['subgrid'] and self.general['solver'] == 'cuda') or + (self.general['subgrid'] and self.general['solver'] == 'opencl')): logger.exception('You cannot currently use CUDA or OpenCL-based ' 'solvers with models that contain sub-grids.') raise ValueError