How to get PETSc in complex mode

Greetings everyone,

I am fairly new to FenicsX and I am trying to solve the Helmholtz equation using PETSc.LinearProblem, therefore I need to switch PETSC to complex mode.

Sorry if this post is redundant but I cannot find any explaination on how to switch PETsc to complex mode that worked. I am on linux and I installed FenicX in a conda environment as explained in the doc and I work on Spyder. I have never used Docker so the procedure given in the Poisson complex resolution tutorial do not really apply. Maybe there is an equivalent way for my situation but my linux skills are not good enough to figure it out.

If someone could explain me how to switch to PETSc without Docker or a Jupyter notebook it would really help me.

Thank you for reading me, have a nice day !

See: Assertion error on Poisson problem with complex option - #7 by minrk

Thanks it worked after some changes, have a nice day !