[petsc-users] SLEPc BV data structure

Bikash Kanungo bikash at umich.edu
Sat Mar 5 12:17:36 CST 2016


Thanks Jose. I'll try your suggestion and let you know if it works.

On Sat, Mar 5, 2016 at 12:21 PM, Jose E. Roman <jroman at dsic.upv.es> wrote:

>
> > El 5 mar 2016, a las 12:06, Bikash Kanungo <bikash at umich.edu> escribió:
> >
> > Hi,
> >
> > I was wondering if the BV data structure support ghosted vectors i.e.,
> Vec created with VecCreateGhost. Specifically, if I choose to populate the
> BV data structure through BVInsertVecs, perform orthogonalization and then
> retrieve the Vecs using BVGetColumn, then will the retrieved Vecs have the
> extra ghost nodes in them?
> >
> > Regards,
> > Bikash
> >
>
> Try the following:
>
> 1. Create a ghosted vector of the appropriate dimension.
> 2. Create a BV of type BVVECS
> 3. Set the dimensions of the BV via BVSetSizesFromVec() passing the vector
> from 1.
>
> Then BVInsertVecs() should work as you expect (provided that
> VecDuplicate() keeps ghost nodes). Note that this only works for BVVECS,
> which is slower than the default type.
>
> Jose
>
>


-- 
Bikash S. Kanungo
PhD Student
Computational Materials Physics Group
Mechanical Engineering
University of Michigan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20160305/4df99c2c/attachment.html>


More information about the petsc-users mailing list