From f5b5dd8565d0b2a868692eb0d808d94b2315adca Mon Sep 17 00:00:00 2001 From: Rhys Thomas Date: Thu, 30 Jan 2025 08:59:43 +0000 Subject: [PATCH] Fix bug Error 'isnan is undefined in device code' --- openpiv/gpu/misc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openpiv/gpu/misc.py b/openpiv/gpu/misc.py index 3f21b9e..031b516 100644 --- a/openpiv/gpu/misc.py +++ b/openpiv/gpu/misc.py @@ -365,7 +365,7 @@ def gpu_scalar_mod(f, m): if (t_idx >= size) {return;} // Check for NaNs. - if (std::isnan(f[t_idx])) {f[t_idx] = 0.0f;} + if (isnan(f[t_idx])) {f[t_idx] = 0.0f;} } """ )