On 12/20/19 6:42 PM, Ellen M. Price wrote:
> I did eventually solve this problem, but I ran into another one. I think I'm 
> close, I just need a little guidance. The problems occur in assembling the 
> system. I've checked the right-hand side vector and it has some odd features. 
> I'm running the "slide" problem, just like step-33 does. I suppose my 
> question 
> is, how should the system assembly routine be changed to accommodate 
> parallelization? All I did was add an if statement to check whether a cell is 
> locally owned before computing on it. Conceptually, what else needs to change?

Ellen,
not actually very much: You need a non-ghosted (writable) vector, which 
apparently you have, for your right hand side. Then you loop over the locally 
owned cells (which you do), and the only other thing you have to do is to call 
compress() at the end of the assembly.

There are many other things one can do to test whether things work correctly, 
but "has some odd features" is not enough of a hint to allow for more concrete 
suggestions :-)

Best
  WB


-- 
------------------------------------------------------------------------
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/a457915b-15e1-26eb-9196-9ebea79aa5ff%40colostate.edu.

Reply via email to