From 0eae13c46ac29608a2ecbe866e312b5fac748a84 Mon Sep 17 00:00:00 2001 From: papel Date: Wed, 5 Jun 2024 09:16:55 +0200 Subject: [PATCH] Add has_complex_kernels --- cpp/dolfinx/common/defines.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cpp/dolfinx/common/defines.h b/cpp/dolfinx/common/defines.h index 0ebd153cd9d..c56d2583402 100644 --- a/cpp/dolfinx/common/defines.h +++ b/cpp/dolfinx/common/defines.h @@ -92,4 +92,14 @@ consteval bool has_ptscotch() #endif } +/// Return true if DOLFINx has complex kernels enabled +consteval bool has_complex_kernels() +{ +#ifdef DOLFINX_STDC_NO_COMPLEX_KERNELS + return true; +#else + return false; +#endif +} + } // namespace dolfinx