fix hhd d_gpu bug if cuda=false

This commit is contained in:
TPP-G6
2026-01-28 10:23:00 +08:00
parent 5d56558447
commit c3fa34e66d
2 changed files with 11 additions and 7 deletions
+1 -1
View File
@@ -228,7 +228,7 @@ class Sensor:
# Initialize HHD solver
if self.__hhd is None:
self.__hhd = nHHD(grid=flow.shape[:2], spacings=(18, 18))
self.__hhd = nHHD(cuda=self.cuda, Qgrid=flow.shape[:2], spacings=(18, 18))
# Force computation
if self.cuda and self.CUPY_AVAILABLE: