On 2/24/23 04:37, 'yy.wayne' via deal.II User Group wrote:
However another problem pops out. When test a vector-valued problem, renumber
DoFs
component wise make reinit of vectors fail. If DoFRenumbering::component_wise
is called,
1. LinearAlgebra::distributed::Vector<double>
v1(dof_handler.locally_owned_dofs(), mpi_communicator);
v1.reinit(dof_handler.locally_owned_dofs(), mpi_communicator);
Success
2. LinearAlgebra::distributed::Vector<double> v2;
v2.reinit(dof_handler.locally_owned_dofs(), mpi_communicator);
Fails.
Is that relates to trilinos date type?
If you do not arrange the different components of a vector-valued finite
element into a block vector (i.e., if you use a single vector for all
components of the solution), then there is no need to call
DoFRenumbering::component_wise().
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/06230b0b-f889-3692-a1f9-e279e9ea233b%40colostate.edu.