> 1. Do I need to call compress() afterwards?

Probably. compress() communicates entries between processors, so if you set 
entries that other processors own, then yes you need to call compress().


> 2. What if there are duplicates in the input (i.e. if the same index
> appears twice in "indices" with the same corresponding value in "values")?

Then one value will win. Most likely the last one.


> 3. What if the input is incomplete, i.e. if the list of indices in
> "indices" is not a complete list of indices in the vector? (this, i
> think, would mean that not all entries are "touched"... which I think
> leads to errors? I never quite figured that out..)

It just leaves the values that used to be in there unchanged.

W.

-------------------------------------------------------------------------
Wolfgang Bangerth                email:            [email protected]
                                 www: http://www.math.tamu.edu/~bangerth/
_______________________________________________
dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii

Reply via email to