Mariia,
I was trying to make adjustments in my script to enable parallel computing (as
it takes unbearably long to calculate it even for small problems due to big
sparsity matrix, I guess).
In my script I am using block matrices and vectors with complex elements
(i.e. BlockSparseMatrix<std::complex<double>>). I discovered that
*LA::MPI::BlockSparseMatrix<std::complex<double>> system_matrix* returns an
error while running the script (error:
‘dealii::LinearAlgebraPETSc::MPI::BlockVector’ {aka
‘dealii::PETScWrappers::MPI::BlockVector’} is not a template
149 | LA::MPI::BlockVector<std::complex<double>>
locally_relevant_solution;), whereas *LA::MPI::BlockSparseMatrix
system_matrix* works just fine.
Could you please give me a hint on how to possibly fix this issue?
There is no issue to fix. The class is not a template, so
LA::MPI::BlockSparseMatrix
is the correct syntax, and
LA::MPI::BlockSparseMatrix<std::complex<double>>
is wrong.
The underlying issue is that you choose the type to be used for vectors and
matrices in PETSc at the time you compile PETSc. This is different from
deal.II and Trilinos classes, where you choose the type whenever you create a
variable in your own code. If you compile PETSc with default options, vector
and matrix entries are always 'double'. If you want anything else, you have to
say so when you compile PETSc.
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/8aa51229-5163-41d4-59e7-a6fa05409543%40colostate.edu.