[petsc-users] Dynamically resize the existing PetscVector

Shidi Yan ys453 at cam.ac.uk
Mon Dec 17 09:14:51 CST 2018


Hello,

I am working on adaptive moving mesh problems. Therefore, the petsc
vector size is constantly changing. 
The way I am currently dealing with this change is destroy the petsc vector 
first with VecDestroy() and create a new vector with VecCreateGhost().
But I think this is not a really efficient way. So I am wondering if there is
any way to resize the existing PetscVector dynamically. 

Thank you for your time.

Kind Regards,
Shidi


More information about the petsc-users mailing list