Thank You Prof. Bangerth. I actually needed the norm of the entire vector only. I was just curious if there existed a function that did it for each processor.
Regards Wasim On Thu, Apr 13, 2023 at 9:50 PM Wolfgang Bangerth <bange...@colostate.edu> wrote: > On 4/13/23 06:22, Wasim Niyaz Munshi ce21d400 wrote: > > ** > > > > Hello everyone. I have a vector distributed over multiple processors. I > > want to compute the modulus of the entire vector and also the modulus of > > the portions of vector stored by each process. I would really appreciate > > some help in this regard. > > Wasim: > For the former operation, vector.l2_norm() works. There are similar > functions for l1 and linfinity norms. > > The latter operation is uncommon, and so there is no function. Why would > you want to compute the norm of only the elements stored on the current > process? > > 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 a topic in the > Google Groups "deal.II User Group" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/dealii/pxDuRdxQoEo/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > dealii+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/dealii/d203d5f7-568e-4743-51d3-6388188e5ec0%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 dealii+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/CAM8ps5Drpv8fynwsfb3Kyb8qdAXWTJ5Wy3MB3nvXYeUsOexG2Q%40mail.gmail.com.