> > The problem is a mismatch of expectations. Like in many other places, when > you > pass a cell-based vector to DataOut, it assumes that on every process, the > vector has one entry for each active cell of the triangulation -- i.e., on > every process it is a *local* vector -- rather than a distributed vector > with > one entry for each globally active cell. In other words, for cell-based > vectors, we ignore the fact that the computation might be parallel.
Thank you for the response, looks like I didn't do my homework properly :P. Copying the MPI vector into a Vector<float> of size triang.n_active_cells() and adding this vector instead to DataOut works. Thanks again! On Tue, 15 Jun 2021 at 04:24, Wolfgang Bangerth <[email protected]> wrote: > On 6/11/21 12:09 AM, vachan potluri wrote: > > > > I am having an issue in using DataOut for such vector in a parallel > process. I > > am attaching a MWE which captures my problem. I am encountering a > segmentation > > fault (signal 11). > > The problem is a mismatch of expectations. Like in many other places, when > you > pass a cell-based vector to DataOut, it assumes that on every process, the > vector has one entry for each active cell of the triangulation -- i.e., on > every process it is a *local* vector -- rather than a distributed vector > with > one entry for each globally active cell. In other words, for cell-based > vectors, we ignore the fact that the computation might be parallel. > > 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/88da546c-259d-aac8-89cf-598e7c1f6b33%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/CALAVa_wF96oKWJZ6B77e2a80VDCk_vrGXqp-3sEN0it2XwbGgw%40mail.gmail.com.
