Mariia,

You need to make sure that the std::map also uses values of type
std::complex<double>. The compile error you shared shows that you use
doubles.

Best,
Daniel

Am Di., 14. Sept. 2021 um 07:30 Uhr schrieb Мария Бронзова <
masianic...@gmail.com>:

> Hi everyone,
>
> I ran into the following difficulty: I have a vector-valued problem with
> complex numbers as entries for my BlockSparseMatrix system_matrix and
> BlockVector system_rhs and solution vectors and I am trying to apply
> Dirichlet boundary conditions, using the
> MatrixTools::apply_boundary_values(boundary_values, system_matrix,
> solution, system_rhs) function.
>
> The compiler is complaining, indicating the error: no matching function
> for call to ‘apply_boundary_values(std::map<unsigned int, double>&,
> dealii::BlockSparseMatrix<std::complex<double> >&,
> dealii::BlockVector<std::complex<double> >&,
> dealii::BlockVector<std::complex<double> >&)’.
>
> Is it not possible to use the function for complex-values systems?
>
> Thank you!
>
> Kind regards,
> Mariia
>
> --
> 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/aa6ad6fa-7404-4617-bff3-3f108d2b6001n%40googlegroups.com
> <https://groups.google.com/d/msgid/dealii/aa6ad6fa-7404-4617-bff3-3f108d2b6001n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAOYDWbK1d1KXnrsK7D_%2BSo9EON_RCi-LnAGKbpiZAtvGXCh%3Dkw%40mail.gmail.com.

Reply via email to