[petsc-dev] VecNestSetSubVec for VecNest.

Jed Brown jedbrown at mcs.anl.gov
Sun Oct 16 11:25:00 CDT 2011


On Sat, Oct 15, 2011 at 10:12, Vijay S. Mahadevan <vijay.m at gmail.com> wrote:

> Find attached the bundle with the changes for
> VecNestSetSubVec/VecNestSetSubVecs. The test file and the outputs are
> also included in the bundle. Feel free to modify the documentation if
> need be.
>

Thanks, applied.


>
> The only thing that I think needs a better implementation is the
> SetSubVecs where I've just looped over the indices and recursively
> called the single SetSubVec. This was hard to optimize since
> accommodating variable vectors involves traversing the IS one by one
> and I couldn't figure out a way to implement this concurrently.
> Anyway, if you can think of something better, let me know.
>

Let's wait on optimizing until we have a use case where it matters. Since
everything else expects data structures to be rebuilt if anything changes, I
don't think it's a concern just yet. If we allow more resizing in the
future, we can optimize this routine.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20111016/36088a16/attachment.html>


More information about the petsc-dev mailing list