Chenchen,
On Thursday, May 26, 2016 at 3:37:03 PM UTC-4, Chenchen Liu wrote:
> I am modifying step-17 to do multiscale modeling. My goal is different
> from the step-17, i.e., I don't want to store the matrix in distribution.
> let's consider matrix-vector multiplication problem, [A]{u}={b}, in which
> [A] has already been obtained as a full matrix without distribution, and
> the rhs vector {b} needs to be assembled with distribution. My problem is
> how to obtain the components of the rhs vector {b}, or how to convert the
> distributed vector to a normal vector without distribution? I really need
> this even of it is not efficient.
>
> If I understand correctly, you have distributed vector but you want every
processor to own (know) the whole vector. Is that right? I think this (if
you want to use deal.II sequential vector)
https://www.dealii.org/8.4.1/doxygen/deal.II/classVector.html#aa5dbb7642901ec9bb2eeb85ff99ba89c
or this (if you want to use PETSc sequential vector)
https://www.dealii.org/8.4.1/doxygen/deal.II/classPETScWrappers_1_1Vector.html#a3b51db1336c02fd2c3ded73e05f4b7cf
should work.
Best,
Bruno
--
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].
For more options, visit https://groups.google.com/d/optout.