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:                 bange...@colostate.edu
                           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 dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/28758d9b-b7e4-cc03-90ae-f758017207ea%40colostate.edu.

Reply via email to