Re: [deal.II] Is a call to compress() required after scale()?

2019-11-24 Thread Daniel Arndt
Vachan, No there should be no need to call PETScWrappers::VectorBase::compress() after PETScWrappers::VectorBase::scale() (otherwise that would clearly be a bug in deal.II) since scale() calls VecPointwiseMult which is already collective. Does adding compress() in fact change anything for you? Oth

[deal.II] Is a call to compress() required after scale()?

2019-11-24 Thread vachan potluri
Hello, I am facing a weird problem. At a point in code, I have PETScWrappers::VectorBase::scale() called for few distributed vectors. Subsequently, I have assignment operator on ghosted versions of these vectors for parallel communication. When I launch the code with 2 or 4 processes, it works