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 < [email protected]> đã viết: > 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: [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/2871cd63-7236-a03d-cb02-8dc49a98a8db%40colostate.edu > . > -- 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/CAAo%2BSZeZDo0dLUfG-xtvi1XdRi-BkJb5N0wRCowK52ZrUAa9EA%40mail.gmail.com.
