Skip to content

Commit

Permalink
Add has_complex_kernels
Browse files Browse the repository at this point in the history
  • Loading branch information
papel authored and papel committed Jun 5, 2024
1 parent 40f4d09 commit 0eae13c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cpp/dolfinx/common/defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0eae13c

Please sign in to comment.