Thanks. Best D.
On Wednesday, September 6, 2017 at 3:33:34 PM UTC+2, Wolfgang Bangerth wrote: > > > > * Check the following: Is sol_u a vector that has ghost elements > before > > serialization? Is sol_u a vector that has ghost elements after > > serialization? Because if these vectors don't have ghost elements, > then > > what you see visually may not be what you actually have. > > > > > > The vectors used for the serialization and deserialization are of the > same > > type and the output > > of the vector should be correct because is the same routine that I > usually use > > to visualize > > the the solution. > > That's the part about debugging: of course "the vector *should be > correct*", > except that it isn't :-) Debugging is all about finding the discrepancies > between what "should be true" and what "is true". When I debug problems, I > try > to find exactly these sorts of discrepancies and then find a wedge to go > backwards by asking "ok, I thought that this *should* be true, but it > apparently isn't; why did I think this to be true, i.e., what previous > state > is something computed from and what do I know about this previous state > that > *should also be true*?" Then I go check the correctness of that previous > state > that I thought should be true and compare with reality. > > In your case, I would verify that indeed the vectors both before and after > serialization really have ghost elements and that these ghost elements > have > the correct values. You should really be able to reproduce all of this on > a > very coarse mesh (maybe just two cells) for which you can output > everything to > screen, or see it in a debugger. > > Best > W. > > > -- > ------------------------------------------------------------------------ > Wolfgang Bangerth email: [email protected] > <javascript:> > 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]. For more options, visit https://groups.google.com/d/optout.
