Re: [deal.II] How to sum up several LinearAlgebraPETSc::MPI::Vector completely_distributed_solution ?

2019-08-04 Thread Wolfgang Bangerth
On 8/2/19 10:57 PM, Phạm Ngọc Kiên wrote: > I have tried with the sum of the right hand side, but as I think, it did not > work for my problem. I think I've made this kind of point on the mailing list before: You make it sound like you tried something, but it didn't work even though it should

Re: [deal.II] How to sum up several LinearAlgebraPETSc::MPI::Vector completely_distributed_solution ?

2019-08-02 Thread Phạm Ngọc Kiên
Dear Prof. Wolfgang Bangerth, I have tried with the sum of the right hand side, but as I think, it did not work for my problem. I will try with your guidance. Thank you very much. Best regards, Kien Vào Th 7, 3 thg 8, 2019 vào lúc 09:42 Wolfgang Bangerth < bange...@colostate.edu> đã viết: > On

Re: [deal.II] How to sum up several LinearAlgebraPETSc::MPI::Vector completely_distributed_solution ?

2019-08-02 Thread Wolfgang Bangerth
On 8/1/19 9:24 PM, Phạm Ngọc Kiên wrote: > > However, I do not know if I can sum up all the > completely_distributed_solution > from the different right-hand-sides in order to get a vector of solution. > Could you please tell me how to do this? You could just sum them up: AppropriateType

[deal.II] How to sum up several LinearAlgebraPETSc::MPI::Vector completely_distributed_solution ?

2019-08-01 Thread Phạm Ngọc Kiên
Dear colleagues, I am trying to solve my problem with different right_hand_sides. For each right hand side, we can solve by the codes: LinearAlgebraPETSc::MPI::Vector completely_distributed_solution(locally_owned_dofs, mpi_communicator); SolverControl solver_control;