Thank you.
I'm using the Oracle VirtualBox environment by default, so I guess it's not 
complied with PETSc complex arithmetic.
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?

在2022年9月28日星期三 UTC+8 10:47:51<Wolfgang Bangerth> 写道:

> On 9/27/22 00:25, 'yy.wayne' via deal.II User Group wrote:
> > As I changing built-in solver to PETScWrappers, I failed to converse a 
> > "PETSc::Wrappers:Vector" variable to a "Vector<std::complex<double>>" 
> one, as 
> > shown in line 464 of my code. I tried
> >         "Vector<std::complex<double>> a = b; (where b is a PETSc Vector)"
> > or
> >         "Vector<std::complex<double>> a(b)"
> > but both failed. In step-17 however, both is good. Is it because the 
> complex 
> > type or other mistake inmy code?
> > 
>
> I don't know. You may want to show the compiler's error message.
>
> Did you compile PETSc with the flag necessary to support complex 
> arithmetic?
>
> Best
> W.
>
> -- 
> ------------------------------------------------------------------------
> Wolfgang Bangerth email: [email protected]
> www: http://www.math.colostate.edu/~bangerth/
>
>

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/28ac7468-1671-4b11-9fac-07678908d794n%40googlegroups.com.

Reply via email to