More work on setting precision with subgrids

这个提交包含在:
Craig Warren
2023-09-04 20:23:55 +01:00
父节点 1d4f91b912
当前提交 fa87b6c57a

查看文件

@@ -263,7 +263,7 @@ class SimulationConfig:
self.devices["devs"] = detect_opencl()
# Subgrids
try:
if hasattr(self.args, "subgrid") and self.args.subgrid:
self.general["subgrid"] = self.args.subgrid
# Double precision should be used with subgrid for best accuracy
self.general["precision"] = "double"
@@ -274,7 +274,7 @@ class SimulationConfig:
"You cannot currently use CUDA or OpenCL-based " "solvers with models that contain sub-grids."
)
raise ValueError
except AttributeError:
else:
self.general["subgrid"] = False
# Scenes parameter may not exist if user enters via CLI