On 9/27/22 20:52, 'yy.wayne' via deal.II User Group wrote:
> I'm using the Oracle VirtualBox environment by default, so I guess it's not
> complied with PETSc complex arithmetic.
Yes, that's probably true. You will have to install things from scratch on
your system if you want PETSc with complex arithmetic. It is a pity that PETSc
doesn't make that easy :-(
> By the way, is using complex coding approved or separate to real and imaginary
> parts? I read another discussion in gouglegroup said complex coding might lead
> to error for <u,v> <v,u> integral. But separate a problem into real and
> imaginary doubles the matirx size and DoFs, isn't it?
Well yes, but then you do need to store real and imaginary parts somewhere
anyway. So this isn't likely going to be a big bottleneck.
The post you refer to simply points out that it is easy to make mistakes if
you work in complex, rather than separate real/imaginary, arithmetic. But it
can be done correctly, as shown in step-58.