I might be missing something. I have installed dolfinx version 0.5.2 and I wanted to check if I have complex support, however when I try to import has_petsc_complexI get a cannot import name 'has_petsc_complex' from 'dolfinx' import error.
dolfinx
0.5.2
has_petsc_complex
cannot import name 'has_petsc_complex' from 'dolfinx'
Is this function no longer existing?
Sorry for this kind of silly question.
This function was removed in 2021:
To check if you have the complex build of PETSc I suggest you call
from petsc4py import PETSc print(PETSc.ScalarType)