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 sum_of_solutions (...); for (unsigned int i=0; i<...; ++i) sum_of_solutions += solution[i]; Of course, the sum of the solutions equals the solution of a single linear system with the sum of the right hand sides and the same matrix -- which would by substantially cheaper to compute. 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/2871cd63-7236-a03d-cb02-8dc49a98a8db%40colostate.edu.